{
  "openapi": "3.1.0",
  "info": {
    "title": "DigitalCard API",
    "version": "1.0.0",
    "description": "Company-scoped virtual card programs. JSON request fields use camelCase; stored resource fields use snake_case. Amounts are safe integers in ISO 4217 minor units. Financial operations are asynchronous and idempotent.",
    "contact": {
      "name": "DigitalCard integration support",
      "email": "support@digitalcard.technology"
    }
  },
  "servers": [
    {
      "url": "https://api.digitalcard.technology",
      "description": "Company integrations"
    }
  ],
  "tags": [
    {
      "name": "Platform"
    },
    {
      "name": "Authentication"
    },
    {
      "name": "Programs"
    },
    {
      "name": "Beneficiaries"
    },
    {
      "name": "Cards"
    },
    {
      "name": "Funding"
    },
    {
      "name": "Operations"
    },
    {
      "name": "Transactions"
    },
    {
      "name": "Branding"
    },
    {
      "name": "Company"
    },
    {
      "name": "Support"
    },
    {
      "name": "Verification"
    },
    {
      "name": "Access"
    },
    {
      "name": "Webhooks"
    },
    {
      "name": "Administration"
    },
    {
      "name": "Beneficiary portal"
    }
  ],
  "components": {
    "securitySchemes": {
      "session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Host-digitalcard",
        "description": "Host-bound portal session. Beneficiary and administrator routes must be called on their own portal origin."
      },
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Company API key. Keep this token on your server."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Authentication required.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "The current role or realm cannot perform this action.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Conflict": {
        "description": "The operation conflicts with the current state, funds or idempotency key.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Invalid": {
        "description": "Request validation failed.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "RateLimited": {
        "description": "The request rate limit was exceeded.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Failed": {
        "description": "The request could not be completed.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "error"
              ],
              "properties": {
                "error": {
                  "type": "object",
                  "required": [
                    "code",
                    "message",
                    "requestId"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "requestId": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/api/v1/context": {
      "get": {
        "operationId": "get__api_v1_context",
        "tags": [
          "Platform"
        ],
        "summary": "Resolve portal context",
        "description": "Returns the portal surface and verified program branding for the request hostname.\n\nAccess: Public",
        "security": [],
        "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"
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "operationId": "get__api_v1_health",
        "tags": [
          "Platform"
        ],
        "summary": "Read service status",
        "description": "Returns the service readiness response.\n\nAccess: Public",
        "security": [],
        "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"
          }
        }
      }
    },
    "/api/v1/openapi": {
      "get": {
        "operationId": "get__api_v1_openapi",
        "tags": [
          "Platform"
        ],
        "summary": "Download OpenAPI",
        "description": "Returns this API contract as an OpenAPI 3.1 document.\n\nAccess: Public",
        "security": [],
        "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"
          }
        }
      }
    },
    "/api/v1/program-requests": {
      "post": {
        "operationId": "post__api_v1_program_requests",
        "tags": [
          "Platform"
        ],
        "summary": "Request a program",
        "description": "Submits a commercial program inquiry. Rate limited to five requests per IP per hour.\n\nAccess: Public",
        "security": [],
        "parameters": [],
        "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": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "company": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200
                  },
                  "country": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "message": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 4000
                  }
                },
                "required": [
                  "name",
                  "email",
                  "company",
                  "country",
                  "message"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/register": {
      "post": {
        "operationId": "post__api_v1_auth_register",
        "tags": [
          "Authentication"
        ],
        "summary": "Register a company",
        "description": "Creates a company workspace and emails a sign-in code. Available on the company hostname.\n\nAccess: Public",
        "security": [],
        "parameters": [],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "legalName": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200
                  },
                  "country": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "timezone": {
                    "default": "UTC",
                    "type": "string",
                    "maxLength": 80
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "name",
                  "legalName",
                  "country",
                  "email"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/request-code": {
      "post": {
        "operationId": "post__api_v1_auth_request_code",
        "tags": [
          "Authentication"
        ],
        "summary": "Request a sign-in code",
        "description": "Requests a six-digit email code. The current hostname determines the company, administrator or beneficiary realm.\n\nAccess: Public",
        "security": [],
        "parameters": [],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "companyId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/verify-code": {
      "post": {
        "operationId": "post__api_v1_auth_verify_code",
        "tags": [
          "Authentication"
        ],
        "summary": "Verify a sign-in code",
        "description": "Consumes a valid challenge and creates a secure host-bound session. Codes expire after ten minutes and allow five attempts.\n\nAccess: Public",
        "security": [],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "challengeId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  }
                },
                "required": [
                  "challengeId",
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/session": {
      "get": {
        "operationId": "get__api_v1_auth_session",
        "tags": [
          "Authentication"
        ],
        "summary": "Read the current session",
        "description": "Returns the authenticated principal and its company, program and beneficiary scope.\n\nAccess: Authenticated 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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/auth/sign-out": {
      "post": {
        "operationId": "post__api_v1_auth_sign_out",
        "tags": [
          "Authentication"
        ],
        "summary": "Sign out",
        "description": "Revokes the current session and clears the session cookie.\n\nAccess: Authenticated session",
        "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/workspaces": {
      "get": {
        "operationId": "get__api_v1_auth_workspaces",
        "tags": [
          "Authentication"
        ],
        "summary": "List company memberships",
        "description": "Lists the active companies available to the signed-in user.\n\nAccess: Company session",
        "security": [
          {
            "session": []
          }
        ],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/auth/workspace": {
      "post": {
        "operationId": "post__api_v1_auth_workspace",
        "tags": [
          "Authentication"
        ],
        "summary": "Switch company workspace",
        "description": "Creates a session scoped to the selected active membership.\n\nAccess: Company session",
        "security": [
          {
            "session": []
          }
        ],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "companyId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  }
                },
                "required": [
                  "companyId"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/programs": {
      "get": {
        "operationId": "get__api_v1_programs",
        "tags": [
          "Programs"
        ],
        "summary": "List programs",
        "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 current program.",
        "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"
                          },
                          "name": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "purpose": {
                            "type": "string",
                            "enum": [
                              "distribution",
                              "expense",
                              "both"
                            ]
                          },
                          "reloadable": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "status": {
                            "type": "string"
                          },
                          "brand_name": {
                            "type": "string"
                          },
                          "brand_color": {
                            "type": "string"
                          },
                          "logo_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "support_email": {
                            "type": "string"
                          },
                          "fee_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))$"
                          },
                          "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",
                          "name",
                          "currency",
                          "purpose",
                          "reloadable",
                          "status",
                          "brand_name",
                          "brand_color",
                          "logo_url",
                          "support_email",
                          "fee_amount",
                          "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/recipients": {
      "get": {
        "operationId": "get__api_v1_recipients",
        "tags": [
          "Beneficiaries"
        ],
        "summary": "List beneficiaries",
        "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 record.",
        "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"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "last_name": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          "kyc_status": {
                            "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",
                          "first_name",
                          "last_name",
                          "email",
                          "country",
                          "kyc_status",
                          "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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_recipients",
        "tags": [
          "Beneficiaries"
        ],
        "summary": "Create a beneficiary",
        "description": "Registers a beneficiary within an active program and validates the permitted residence country.\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": {
          "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": {
                  "programId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "country": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  }
                },
                "required": [
                  "programId",
                  "email",
                  "firstName",
                  "lastName",
                  "country"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cards": {
      "get": {
        "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": {
        "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"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/wallets": {
      "get": {
        "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/operations": {
      "get": {
        "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"
          }
        }
      }
    },
    "/api/v1/transactions": {
      "get": {
        "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/ledger": {
      "get": {
        "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/domains": {
      "get": {
        "operationId": "get__api_v1_domains",
        "tags": [
          "Branding"
        ],
        "summary": "List custom domains",
        "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"
                          },
                          "hostname": {
                            "type": "string"
                          },
                          "hostname_status": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "certificate_status": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "validation_json": {
                            "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",
                          "hostname",
                          "hostname_status",
                          "certificate_status",
                          "validation_json",
                          "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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_domains",
        "tags": [
          "Branding"
        ],
        "summary": "Connect a beneficiary domain",
        "description": "Requests a Cloudflare for SaaS custom hostname and returns ownership verification information.\n\nAccess: Company owner or admin; platform administrator",
        "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"
          },
          "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}$"
                  },
                  "hostname": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 253
                  }
                },
                "required": [
                  "programId",
                  "hostname"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/documents": {
      "get": {
        "operationId": "get__api_v1_documents",
        "tags": [
          "Company"
        ],
        "summary": "List company documents",
        "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 owner, admin or operator.",
        "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"
                          },
                          "recipient_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "kind": {
                            "type": "string"
                          },
                          "file_name": {
                            "type": "string"
                          },
                          "content_type": {
                            "type": "string"
                          },
                          "byte_size": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "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",
                          "recipient_id",
                          "kind",
                          "file_name",
                          "content_type",
                          "byte_size",
                          "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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_documents",
        "tags": [
          "Company"
        ],
        "summary": "Upload verification evidence",
        "description": "Uploads one PDF, PNG or JPEG, up to 10 MiB, against a case requirement and current version. Files are encrypted in private storage. The upload must belong to the authenticated company or beneficiary case.\n\nAccess: Company owner or admin; beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "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"
          },
          "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": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "caseId",
                  "requirementId",
                  "version",
                  "kind",
                  "file"
                ],
                "properties": {
                  "caseId": {
                    "type": "string"
                  },
                  "requirementId": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "registration",
                      "ownership",
                      "address",
                      "agreement",
                      "identity",
                      "evidence"
                    ]
                  },
                  "issuedOn": {
                    "type": "string",
                    "format": "date",
                    "description": "Document issue date; required for address evidence."
                  },
                  "expiresOn": {
                    "type": "string",
                    "format": "date",
                    "description": "Identity-document expiry date, unless expiryPermanent is true."
                  },
                  "expiryPermanent": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ],
                    "description": "Whether an identity document has no expiry date."
                  },
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tickets": {
      "get": {
        "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"
          }
        }
      },
      "post": {
        "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/audit": {
      "get": {
        "operationId": "get__api_v1_audit",
        "tags": [
          "Company"
        ],
        "summary": "List activity",
        "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",
                              "null"
                            ]
                          },
                          "action": {
                            "type": "string"
                          },
                          "resource_type": {
                            "type": "string"
                          },
                          "resource_id": {
                            "type": "string"
                          },
                          "detail_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))$"
                          }
                        },
                        "required": [
                          "id",
                          "company_id",
                          "action",
                          "resource_type",
                          "resource_id",
                          "detail_json",
                          "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/company": {
      "get": {
        "operationId": "get__api_v1_company",
        "tags": [
          "Company"
        ],
        "summary": "Read company details",
        "description": "Returns the current company profile and verification status.\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"
          }
        }
      }
    },
    "/api/v1/overview": {
      "get": {
        "operationId": "get__api_v1_overview",
        "tags": [
          "Company"
        ],
        "summary": "Read workspace overview",
        "description": "Returns real record counts and company funding totals separated by currency.\n\nAccess: Authenticated 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"
          }
        }
      }
    },
    "/api/v1/company/kyb": {
      "get": {
        "operationId": "get__api_v1_company_kyb",
        "tags": [
          "Company"
        ],
        "summary": "Read company verification workspace",
        "description": "Returns the encrypted-profile projection authorized for the applicant, required evidence, checklist, messages, revision history and missing submission fields.\n\nAccess: Company owner or admin",
        "security": [
          {
            "session": []
          }
        ],
        "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"
          }
        }
      },
      "put": {
        "operationId": "put__api_v1_company_kyb",
        "tags": [
          "Company"
        ],
        "summary": "Save company verification",
        "description": "Saves an encrypted draft with the current case version. Complete the company, people, ownership, program, funding and compliance sections before submitting. A stale version conflicts.\n\nAccess: Company owner or admin",
        "security": [
          {
            "session": []
          }
        ],
        "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": {
          "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"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "profile": {
                    "type": "object",
                    "properties": {
                      "legalName": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "tradingName": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "registrationNumber": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "taxNumber": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "entityType": {
                        "type": "string",
                        "enum": [
                          "corporation",
                          "llc",
                          "partnership",
                          "sole_trader",
                          "nonprofit",
                          "government",
                          "other",
                          ""
                        ]
                      },
                      "incorporationDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "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])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "incorporationCountry": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "website": {
                        "type": "string",
                        "maxLength": 2048
                      },
                      "registeredAddress": {
                        "type": "object",
                        "properties": {
                          "line1": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "line2": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "city": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "region": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "postalCode": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "country": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          }
                        },
                        "required": [
                          "line1",
                          "line2",
                          "city",
                          "region",
                          "postalCode",
                          "country"
                        ]
                      },
                      "operatingAddress": {
                        "type": "object",
                        "properties": {
                          "line1": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "line2": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "city": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "region": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "postalCode": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "country": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          }
                        },
                        "required": [
                          "line1",
                          "line2",
                          "city",
                          "region",
                          "postalCode",
                          "country"
                        ]
                      },
                      "registeredAgentAddress": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "businessDescription": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "businessHistory": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "employeeCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100000000
                      },
                      "industry": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "licenses": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "geographicReach": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "ownershipStructure": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "intermediateEntities": {
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[A-Za-z0-9_-]{12,100}$"
                            },
                            "legalName": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "country": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "registrationNumber": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "ownershipPercent": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100
                            }
                          },
                          "required": [
                            "id",
                            "legalName",
                            "country",
                            "registrationNumber",
                            "ownershipPercent"
                          ]
                        }
                      },
                      "persons": {
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^[A-Za-z0-9_-]{12,100}$"
                            },
                            "firstName": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "lastName": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "email": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 254,
                                  "format": "email",
                                  "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "dateOfBirth": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date",
                                  "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])))$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "nationality": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "residenceCountry": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "address": {
                              "type": "object",
                              "properties": {
                                "line1": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "line2": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "city": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "region": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "postalCode": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "country": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z]{2}$"
                                    },
                                    {
                                      "type": "string",
                                      "const": ""
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "line1",
                                "line2",
                                "city",
                                "region",
                                "postalCode",
                                "country"
                              ]
                            },
                            "roles": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "director",
                                  "beneficial_owner",
                                  "control_person",
                                  "authorized_representative"
                                ]
                              }
                            },
                            "ownershipPercent": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 100
                            },
                            "jobTitle": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "identificationType": {
                              "default": "",
                              "type": "string",
                              "enum": [
                                "passport",
                                "national_id",
                                "drivers_license",
                                "tax_id",
                                ""
                              ]
                            },
                            "identificationNumber": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "identificationCountry": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[A-Z]{2}$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "identificationExpiry": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date",
                                  "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])))$"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "politicallyExposed": {
                              "type": "string",
                              "enum": [
                                "yes",
                                "no",
                                ""
                              ]
                            },
                            "pepDetails": {
                              "type": "string",
                              "maxLength": 6000
                            },
                            "sourceOfWealth": {
                              "type": "string",
                              "maxLength": 6000
                            }
                          },
                          "required": [
                            "id",
                            "firstName",
                            "lastName",
                            "email",
                            "dateOfBirth",
                            "nationality",
                            "residenceCountry",
                            "address",
                            "roles",
                            "ownershipPercent",
                            "jobTitle",
                            "identificationNumber",
                            "identificationCountry",
                            "identificationExpiry",
                            "politicallyExposed",
                            "pepDetails",
                            "sourceOfWealth"
                          ]
                        }
                      },
                      "noQualifyingOwner": {
                        "type": "boolean"
                      },
                      "ownershipExplanation": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "sourceOfFunds": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "sourceOfWealth": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "bankName": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "bankCountry": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "bankAccountHolder": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "programName": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "programPurpose": {
                        "type": "string",
                        "enum": [
                          "distribution",
                          "expense",
                          "both",
                          ""
                        ]
                      },
                      "targetAudience": {
                        "type": "string",
                        "enum": [
                          "business",
                          "consumer",
                          "both",
                          ""
                        ]
                      },
                      "companyCountries": {
                        "maxItems": 250,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "beneficiaryCountries": {
                        "maxItems": 250,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "spendingCountries": {
                        "maxItems": 250,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z]{2}$"
                        }
                      },
                      "currencies": {
                        "maxItems": 30,
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "requestedLaunchDate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "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])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "distributionModel": {
                        "type": "string",
                        "enum": [
                          "api",
                          "portal",
                          "embedded",
                          "redirect",
                          "agent",
                          ""
                        ]
                      },
                      "subDistributors": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "applicationFlow": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "identityFlow": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "issuanceFlow": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "spendingFlow": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "fundingMethods": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "pooledFunds": {
                        "type": "string",
                        "enum": [
                          "yes",
                          "no",
                          ""
                        ]
                      },
                      "fundSegregation": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "historicalCards": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "historicalBeneficiaries": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "historicalVolume": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "currentDistribution": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "existingClients": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "forecastBasis": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "forecasts": {
                        "maxItems": 3,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "year": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 3
                            },
                            "cards": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "beneficiaries": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "transactionVolume": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "string",
                                  "const": ""
                                }
                              ]
                            },
                            "averageCardValue": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "maximumCardValue": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "required": [
                            "year",
                            "cards",
                            "beneficiaries",
                            "transactionVolume",
                            "currency",
                            "averageCardValue",
                            "maximumCardValue"
                          ]
                        }
                      },
                      "complianceContact": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "complianceEmail": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 254,
                            "format": "email",
                            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "kybResponsible": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "kycResponsible": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "amlResponsible": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "amlMonitoring": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "sanctionsScreening": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "highRiskExposure": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "chargebackResponsible": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "chargebackHandling": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "expectedChargebackRate": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "dataHandling": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "pciScope": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "reconciliation": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "marketingChannels": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "customerSupport": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "declarationName": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "declarationTitle": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "legalName",
                      "tradingName",
                      "registrationNumber",
                      "taxNumber",
                      "entityType",
                      "incorporationDate",
                      "incorporationCountry",
                      "website",
                      "registeredAddress",
                      "operatingAddress",
                      "registeredAgentAddress",
                      "businessDescription",
                      "businessHistory",
                      "employeeCount",
                      "industry",
                      "licenses",
                      "geographicReach",
                      "ownershipStructure",
                      "intermediateEntities",
                      "persons",
                      "noQualifyingOwner",
                      "ownershipExplanation",
                      "sourceOfFunds",
                      "sourceOfWealth",
                      "bankName",
                      "bankCountry",
                      "bankAccountHolder",
                      "programName",
                      "programPurpose",
                      "targetAudience",
                      "companyCountries",
                      "beneficiaryCountries",
                      "spendingCountries",
                      "currencies",
                      "requestedLaunchDate",
                      "distributionModel",
                      "subDistributors",
                      "applicationFlow",
                      "identityFlow",
                      "issuanceFlow",
                      "spendingFlow",
                      "fundingMethods",
                      "pooledFunds",
                      "fundSegregation",
                      "historicalCards",
                      "historicalBeneficiaries",
                      "historicalVolume",
                      "currentDistribution",
                      "existingClients",
                      "forecastBasis",
                      "forecasts",
                      "complianceContact",
                      "complianceEmail",
                      "kybResponsible",
                      "kycResponsible",
                      "amlResponsible",
                      "amlMonitoring",
                      "sanctionsScreening",
                      "highRiskExposure",
                      "chargebackResponsible",
                      "chargebackHandling",
                      "expectedChargebackRate",
                      "dataHandling",
                      "pciScope",
                      "reconciliation",
                      "marketingChannels",
                      "customerSupport",
                      "declarationName",
                      "declarationTitle"
                    ]
                  }
                },
                "required": [
                  "version",
                  "profile"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/company/kyb/submit": {
      "post": {
        "operationId": "post__api_v1_company_kyb_submit",
        "tags": [
          "Company"
        ],
        "summary": "Submit company verification",
        "description": "Submits a complete version and declaration for independent review. Documents and the profile are hashed into a durable submission snapshot. Submission does not approve the company or activate a program.\n\nAccess: Company owner or admin",
        "security": [
          {
            "session": []
          }
        ],
        "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": {
          "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"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "declarationAccepted": {
                    "type": "boolean",
                    "const": true
                  },
                  "termsAccepted": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "required": [
                  "version",
                  "declarationAccepted",
                  "termsAccepted"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/company/kyb/withdraw": {
      "post": {
        "operationId": "post__api_v1_company_kyb_withdraw",
        "tags": [
          "Company"
        ],
        "summary": "Withdraw company verification",
        "description": "Withdraws an undecided application with a reason and the current version. A withdrawn case cannot authorize issuance.\n\nAccess: Company owner or admin",
        "security": [
          {
            "session": []
          }
        ],
        "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": {
          "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"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 6000
                  }
                },
                "required": [
                  "version",
                  "reason"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/documents/{id}/content": {
      "get": {
        "operationId": "get__api_v1_documents__id__content",
        "tags": [
          "Company"
        ],
        "summary": "Download verification evidence",
        "description": "Returns the decrypted file as an authenticated attachment within the company or beneficiary case scope. Sensitive responses are not cached.\n\nAccess: Company owner or admin; scoped beneficiary; platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "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/verification/cases/{id}/messages": {
      "post": {
        "operationId": "post__api_v1_verification_cases__id__messages",
        "tags": [
          "Verification"
        ],
        "summary": "Add a verification message",
        "description": "Adds an applicant-visible case message. Only platform reviewers can create internal notes; applicants never receive them. The version prevents overwriting a newer review.\n\nAccess: Scoped applicant or platform administrator session",
        "security": [
          {
            "session": []
          }
        ],
        "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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "message": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 6000
                  },
                  "visibility": {
                    "default": "applicant",
                    "type": "string",
                    "enum": [
                      "applicant",
                      "internal"
                    ]
                  }
                },
                "required": [
                  "version",
                  "message"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/verification/cases/{id}/requirements/{reqId}/respond": {
      "post": {
        "operationId": "post__api_v1_verification_cases__id__requirements__reqId__respond",
        "tags": [
          "Verification"
        ],
        "summary": "Respond to a verification requirement",
        "description": "Provides an explanation or clarification for a specific case requirement with the current version. The reviewer must separately accept, reject or waive it.\n\nAccess: Scoped applicant session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reqId",
            "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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "response": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 6000
                  }
                },
                "required": [
                  "version",
                  "response"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/verification/cases/{id}/documents/{documentId}/remove": {
      "post": {
        "operationId": "post__api_v1_verification_cases__id__documents__documentId__remove",
        "tags": [
          "Verification"
        ],
        "summary": "Remove current verification evidence",
        "description": "Excludes a file from the current application with the current case version. Previously submitted revisions and their evidence remain immutable; this action does not delete the historical file.\n\nAccess: Scoped applicant session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "documentId",
            "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": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "version",
                    "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"
          }
        },
        "servers": [
          {
            "url": "https://app.digitalcard.technology"
          },
          {
            "url": "https://admin.digitalcard.technology"
          },
          {
            "url": "https://card.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "version"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/recipients/import": {
      "post": {
        "operationId": "post__api_v1_recipients_import",
        "tags": [
          "Beneficiaries"
        ],
        "summary": "Import beneficiaries",
        "description": "Imports 1 to 200 beneficiaries atomically. CSV columns: email, firstName, lastName, country.\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": {
          "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": {
                  "programId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "csv": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000000
                  }
                },
                "required": [
                  "programId",
                  "csv"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/recipients/{id}/invite": {
      "post": {
        "operationId": "post__api_v1_recipients__id__invite",
        "tags": [
          "Beneficiaries"
        ],
        "summary": "Invite a beneficiary",
        "description": "Queues a branded invitation using the program sender and verified beneficiary domain.\n\nAccess: Company owner, admin 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": {
                    "messageId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "messageId"
                  ],
                  "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": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/distribute": {
      "post": {
        "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"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/{id}/load": {
      "post": {
        "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"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/{id}/unload": {
      "post": {
        "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"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/{id}/pause": {
      "post": {
        "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": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/{id}/resume": {
      "post": {
        "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": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/{id}/close": {
      "post": {
        "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": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/cards/{id}/limits": {
      "post": {
        "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
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/funding": {
      "post": {
        "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"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/reports": {
      "get": {
        "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"
          }
        }
      }
    },
    "/api/v1/team": {
      "get": {
        "operationId": "get__api_v1_team",
        "tags": [
          "Access"
        ],
        "summary": "List team members",
        "description": "Returns active and revoked memberships for the current company.\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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_team",
        "tags": [
          "Access"
        ],
        "summary": "Add a team member",
        "description": "Creates or restores a membership with an explicit role.\n\nAccess: Company owner or admin",
        "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"
          },
          "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": {
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "admin",
                      "finance",
                      "operator",
                      "analyst"
                    ]
                  }
                },
                "required": [
                  "email",
                  "role"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/team/{id}": {
      "patch": {
        "operationId": "patch__api_v1_team__id_",
        "tags": [
          "Access"
        ],
        "summary": "Revoke team access",
        "description": "Revokes a membership. The owner and current user cannot be revoked through this route.\n\nAccess: Company owner or admin",
        "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": {
          "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"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/api-keys": {
      "get": {
        "operationId": "get__api_v1_api_keys",
        "tags": [
          "Access"
        ],
        "summary": "List API keys",
        "description": "Lists key metadata without secret tokens.\n\nAccess: Company owner or admin",
        "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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_api_keys",
        "tags": [
          "Access"
        ],
        "summary": "Create an API key",
        "description": "Creates a company-scoped key with an operator, finance or analyst role. The token is returned once.\n\nAccess: Company owner or admin session",
        "security": [
          {
            "session": []
          }
        ],
        "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"
                    },
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "token"
                  ],
                  "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": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 100
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "operator",
                      "finance",
                      "analyst"
                    ]
                  },
                  "days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 365
                  }
                },
                "required": [
                  "name",
                  "role",
                  "days"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/api-keys/{id}": {
      "delete": {
        "operationId": "delete__api_v1_api_keys__id_",
        "tags": [
          "Access"
        ],
        "summary": "Revoke an API key",
        "description": "Immediately revokes a company API key.\n\nAccess: Company owner or admin",
        "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": {
          "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/webhooks": {
      "get": {
        "operationId": "get__api_v1_webhooks",
        "tags": [
          "Webhooks"
        ],
        "summary": "List webhook endpoints",
        "description": "Lists company webhook destinations without signing secrets.\n\nAccess: Company owner or admin",
        "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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_webhooks",
        "tags": [
          "Webhooks"
        ],
        "summary": "Create a webhook endpoint",
        "description": "Registers a public HTTPS destination. The signing secret is returned once.\n\nAccess: Company owner or admin",
        "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"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "secret"
                  ],
                  "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": {
                  "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/webhooks/{id}": {
      "delete": {
        "operationId": "delete__api_v1_webhooks__id_",
        "tags": [
          "Webhooks"
        ],
        "summary": "Disable a webhook endpoint",
        "description": "Disables future deliveries to this endpoint.\n\nAccess: Company owner or admin",
        "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": {
          "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/programs/{id}/branding": {
      "patch": {
        "operationId": "patch__api_v1_programs__id__branding",
        "tags": [
          "Branding"
        ],
        "summary": "Update program branding",
        "description": "Updates the program name, accent color, support email and optional logo.\n\nAccess: Company owner or admin; 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": {
          "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"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#[a-fA-F0-9]{6}$"
                  },
                  "supportEmail": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "logoUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": [
                  "name",
                  "color",
                  "supportEmail"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{id}/refresh": {
      "post": {
        "operationId": "post__api_v1_domains__id__refresh",
        "tags": [
          "Branding"
        ],
        "summary": "Refresh domain verification",
        "description": "Refreshes ownership and certificate status. The domain activates only when both are active.\n\nAccess: Company owner or admin; 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": {
          "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"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/email-senders": {
      "get": {
        "operationId": "get__api_v1_email_senders",
        "tags": [
          "Branding"
        ],
        "summary": "List program email senders",
        "description": "Lists configured sender identities and verification state.\n\nAccess: Company session or API key; platform administrator",
        "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"
          }
        }
      },
      "post": {
        "operationId": "post__api_v1_email_senders",
        "tags": [
          "Branding"
        ],
        "summary": "Configure a program sender",
        "description": "Stores the program email identity pending administrator domain verification.\n\nAccess: Company owner or admin; platform administrator",
        "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"
          },
          "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}$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  }
                },
                "required": [
                  "programId",
                  "email",
                  "name"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/email-senders/{id}/verify": {
      "post": {
        "operationId": "post__api_v1_email_senders__id__verify",
        "tags": [
          "Administration"
        ],
        "summary": "Verify a sender domain",
        "description": "Verifies the configured sender against an enabled Cloudflare Email Sending domain.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "zoneId": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{32}$"
                  }
                },
                "required": [
                  "zoneId"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/tickets/{id}/messages": {
      "get": {
        "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"
          }
        }
      },
      "post": {
        "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"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cardholder/profile": {
      "get": {
        "operationId": "get__api_v1_cardholder_profile",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Read beneficiary profile",
        "description": "Returns the profile for the beneficiary session and program.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ]
      }
    },
    "/api/v1/cardholder/agreement": {
      "get": {
        "operationId": "get__api_v1_cardholder_agreement",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Read program agreements",
        "description": "Returns the actual agreement and privacy URLs configured for the issuing program.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ]
      }
    },
    "/api/v1/cardholder/verification": {
      "get": {
        "operationId": "get__api_v1_cardholder_verification",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Read beneficiary verification workspace",
        "description": "Returns the beneficiary case, encrypted-profile projection, program-specific requirements, visible messages and submission state within the current program.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ]
      }
    },
    "/api/v1/cardholder/identity/draft": {
      "put": {
        "operationId": "put__api_v1_cardholder_identity_draft",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Save beneficiary identity draft",
        "description": "Saves identity information with the current case version before the beneficiary submits the declaration and actual program agreements.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "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_.:-]+$"
            }
          },
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "profile": {
                    "type": "object",
                    "properties": {
                      "dateOfBirth": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "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])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "phoneNumber": {
                        "type": "string",
                        "maxLength": 30
                      },
                      "nationality": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "identificationType": {
                        "type": "string",
                        "enum": [
                          "passport",
                          "national_id",
                          "drivers_license",
                          "tax_id",
                          ""
                        ]
                      },
                      "governmentId": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "identificationCountry": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "identificationExpiry": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "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])))$"
                          },
                          {
                            "type": "string",
                            "const": ""
                          }
                        ]
                      },
                      "address": {
                        "type": "object",
                        "properties": {
                          "line1": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "line2": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "city": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "region": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "postalCode": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "country": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              {
                                "type": "string",
                                "const": ""
                              }
                            ]
                          }
                        },
                        "required": [
                          "line1",
                          "line2",
                          "city",
                          "region",
                          "postalCode",
                          "country"
                        ]
                      },
                      "occupation": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "sourceOfFunds": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "politicallyExposed": {
                        "type": "string",
                        "enum": [
                          "yes",
                          "no",
                          ""
                        ]
                      },
                      "pepDetails": {
                        "type": "string",
                        "maxLength": 6000
                      },
                      "declarationName": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "dateOfBirth",
                      "phoneNumber",
                      "nationality",
                      "identificationType",
                      "governmentId",
                      "identificationCountry",
                      "identificationExpiry",
                      "address",
                      "occupation",
                      "sourceOfFunds",
                      "politicallyExposed",
                      "pepDetails",
                      "declarationName"
                    ]
                  }
                },
                "required": [
                  "version",
                  "profile"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cardholder/identity": {
      "post": {
        "operationId": "post__api_v1_cardholder_identity",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Submit beneficiary identity",
        "description": "Submits a complete identity revision and consent for the approved program verification policy. Provider onboarding and external verification are tracked separately from draft completion.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "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_.:-]+$"
            }
          },
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "declarationAccepted": {
                    "type": "boolean",
                    "const": true
                  },
                  "termsAccepted": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "required": [
                  "version",
                  "declarationAccepted",
                  "termsAccepted"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cardholder/verification/withdraw": {
      "post": {
        "operationId": "post__api_v1_cardholder_verification_withdraw",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Withdraw beneficiary verification",
        "description": "Withdraws an undecided beneficiary application with a reason and the current case version.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "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_.:-]+$"
            }
          },
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 6000
                  }
                },
                "required": [
                  "version",
                  "reason"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cardholder/cards/{id}/reveal-challenge": {
      "post": {
        "operationId": "post__api_v1_cardholder_cards__id__reveal_challenge",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Request card disclosure code",
        "description": "Emails a fresh one-use code for sensitive card display.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "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_.:-]+$"
            }
          },
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/cardholder/cards/{id}/presentation": {
      "get": {
        "operationId": "get__api_v1_cardholder_cards__id__presentation",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Read presentation configuration",
        "description": "Returns the issuing adapter and display environment without PAN or CVV.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ]
      }
    },
    "/api/v1/cardholder/cards/{id}/reveal": {
      "post": {
        "operationId": "post__api_v1_cardholder_cards__id__reveal",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "Create a secure disclosure session",
        "description": "Consumes the disclosure challenge and obtains a provider display session or ephemeral card details. Sensitive responses use no-store and are never replayed from the idempotency cache.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "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_.:-]+$"
            }
          },
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "challengeId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^\\d{6}$"
                  },
                  "dpopProof": {
                    "type": "string",
                    "maxLength": 20000
                  }
                },
                "required": [
                  "challengeId",
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/cardholder/notifications": {
      "get": {
        "operationId": "get__api_v1_cardholder_notifications",
        "tags": [
          "Beneficiary portal"
        ],
        "summary": "List beneficiary notifications",
        "description": "Returns delivery metadata for the authenticated beneficiary and program.\n\nAccess: Beneficiary session",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "program",
            "in": "query",
            "description": "Required on card.digitalcard.technology; use the program identifier from the invitation.",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://{beneficiaryDomain}",
            "variables": {
              "beneficiaryDomain": {
                "default": "card.digitalcard.technology",
                "description": "The verified beneficiary hostname for the program."
              }
            }
          }
        ]
      }
    },
    "/api/v1/admin/companies": {
      "get": {
        "operationId": "get__api_v1_admin_companies",
        "tags": [
          "Administration"
        ],
        "summary": "List companies",
        "description": "Returns company onboarding and verification metadata.\n\nAccess: Platform administrator",
        "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/admin/verification/cases": {
      "get": {
        "operationId": "get__api_v1_admin_verification_cases",
        "tags": [
          "Administration"
        ],
        "summary": "List verification cases",
        "description": "Lists company and beneficiary verification cases for authorized compliance review.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/admin/verification/cases/{id}": {
      "get": {
        "operationId": "get__api_v1_admin_verification_cases__id_",
        "tags": [
          "Administration"
        ],
        "summary": "Read a verification case",
        "description": "Returns the company or beneficiary workspace including review checks, evidence and internal notes. Sensitive data remains restricted to authorized reviewers.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/admin/verification/cases/{id}/submissions/{submissionId}": {
      "get": {
        "operationId": "get__api_v1_admin_verification_cases__id__submissions__submissionId_",
        "tags": [
          "Administration"
        ],
        "summary": "Read a submitted revision",
        "description": "Returns the immutable profile and evidence manifest submitted in the selected revision, together with its recorded hashes and declaration.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "submissionId",
            "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/admin/verification/cases/{id}/requirements": {
      "post": {
        "operationId": "post__api_v1_admin_verification_cases__id__requirements",
        "tags": [
          "Administration"
        ],
        "summary": "Request verification evidence",
        "description": "Adds a document request, clarification or external verification step with an owner subject, deadline and current case version. Only add links belonging to the real approved verification workflow.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{1,79}$"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 200
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 6000
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "registration",
                      "ownership",
                      "address",
                      "agreement",
                      "identity",
                      "evidence"
                    ]
                  },
                  "subjectRef": {
                    "default": "company",
                    "type": "string",
                    "maxLength": 100
                  },
                  "subjectName": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "externalUrl": {
                    "default": "",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uri"
                      },
                      {
                        "type": "string",
                        "const": ""
                      }
                    ]
                  },
                  "dueAt": {
                    "default": null,
                    "anyOf": [
                      {
                        "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))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "key",
                  "label",
                  "description",
                  "kind",
                  "subjectName",
                  "required",
                  "version"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/verification/cases/{id}/requirements/{reqId}/review": {
      "post": {
        "operationId": "post__api_v1_admin_verification_cases__id__requirements__reqId__review",
        "tags": [
          "Administration"
        ],
        "summary": "Review verification evidence",
        "description": "Accepts, rejects or waives a requirement with an explicit review note and supporting reference. A waiver is recorded rather than treated as a document upload.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reqId",
            "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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "accepted",
                      "rejected",
                      "waived"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 6000
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "version",
                  "status",
                  "note",
                  "reference"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/verification/cases/{id}/checks/{key}": {
      "post": {
        "operationId": "post__api_v1_admin_verification_cases__id__checks__key_",
        "tags": [
          "Administration"
        ],
        "summary": "Record a verification check",
        "description": "Records a check outcome, evidence reference and review note. Risk assessment can include low, medium or high risk. Launch approvals remain separate from core KYB checks.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "passed",
                      "failed",
                      "not_applicable"
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 200
                  },
                  "note": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 6000
                  },
                  "riskRating": {
                    "type": "string",
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ]
                  }
                },
                "required": [
                  "version",
                  "status",
                  "reference",
                  "note"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/verification/cases/{id}/decision": {
      "post": {
        "operationId": "post__api_v1_admin_verification_cases__id__decision",
        "tags": [
          "Administration"
        ],
        "summary": "Decide a verification case",
        "description": "Records the reviewer decision against the current version. Approval requires the applicable accepted evidence and completed checks; issuing partner and sponsor references remain independent activation gates.\n\nAccess: Platform administrator",
        "security": [
          {
            "session": []
          }
        ],
        "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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "in_review",
                      "changes_requested",
                      "approved",
                      "rejected"
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 6000
                  },
                  "partnerName": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "partnerReference": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "version",
                  "decision",
                  "reason",
                  "partnerName",
                  "partnerReference"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/companies/{id}/kyb": {
      "get": {
        "operationId": "get__api_v1_admin_companies__id__kyb",
        "tags": [
          "Administration"
        ],
        "summary": "Read company KYB",
        "description": "Decrypts the submitted company verification profile for authorized review.\n\nAccess: 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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      }
    },
    "/api/v1/admin/companies/{id}/review": {
      "post": {
        "operationId": "post__api_v1_admin_companies__id__review",
        "tags": [
          "Administration"
        ],
        "summary": "Review company verification",
        "description": "Records the company verification decision and review reason.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "approved",
                      "rejected",
                      "suspended"
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 2000
                  },
                  "partnerName": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "partnerReference": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "version",
                  "decision",
                  "reason"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/providers": {
      "get": {
        "operationId": "get__api_v1_admin_providers",
        "tags": [
          "Administration"
        ],
        "summary": "List issuing providers",
        "description": "Returns connection metadata without credentials.\n\nAccess: Platform administrator",
        "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      },
      "post": {
        "operationId": "post__api_v1_admin_providers",
        "tags": [
          "Administration"
        ],
        "summary": "Configure an issuing provider",
        "description": "Stores encrypted credentials and webhook verification material for a real issuing adapter.\n\nAccess: Platform administrator",
        "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"
          },
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "adapter": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Connector identifier supplied for your issuing integration."
                  },
                  "environment": {
                    "type": "string",
                    "enum": [
                      "sandbox",
                      "production"
                    ]
                  },
                  "apiOrigin": {
                    "type": "string",
                    "format": "uri"
                  },
                  "credentials": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "webhookSecret": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 4096
                  }
                },
                "required": [
                  "name",
                  "adapter",
                  "environment",
                  "apiOrigin",
                  "credentials",
                  "webhookSecret"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/providers/{id}/verify": {
      "post": {
        "operationId": "post__api_v1_admin_providers__id__verify",
        "tags": [
          "Administration"
        ],
        "summary": "Verify provider credentials",
        "description": "Makes an authenticated provider read to verify the configured connection.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  },
                  "config": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "currency"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/issuer-programs": {
      "get": {
        "operationId": "get__api_v1_admin_issuer_programs",
        "tags": [
          "Administration"
        ],
        "summary": "List issuing programs",
        "description": "Lists approved products, country coverage and supported capabilities.\n\nAccess: Platform administrator",
        "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      },
      "post": {
        "operationId": "post__api_v1_admin_issuer_programs",
        "tags": [
          "Administration"
        ],
        "summary": "Configure an issuing program",
        "description": "Records an approved partner product, currency, country coverage and implemented capabilities.\n\nAccess: Platform administrator",
        "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"
          },
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "providerId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "currency": {
                    "type": "string"
                  },
                  "companyCountries": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "recipientCountries": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "spendingCountries": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z]{2}$"
                    }
                  },
                  "capabilities": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "identity",
                        "issuance",
                        "reload",
                        "unload",
                        "controls",
                        "limits",
                        "transactions",
                        "reveal"
                      ]
                    }
                  },
                  "config": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "approvalReference": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 500
                  }
                },
                "required": [
                  "providerId",
                  "name",
                  "currency",
                  "companyCountries",
                  "recipientCountries",
                  "spendingCountries",
                  "capabilities",
                  "config",
                  "approvalReference"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/issuer-programs/{id}/activate": {
      "post": {
        "operationId": "post__api_v1_admin_issuer_programs__id__activate",
        "tags": [
          "Administration"
        ],
        "summary": "Activate an issuing program",
        "description": "Reads the provider program and funding account before activation.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/programs": {
      "post": {
        "operationId": "post__api_v1_admin_programs",
        "tags": [
          "Administration"
        ],
        "summary": "Create a company program",
        "description": "Creates a company program and a separate wallet in the approved product currency.\n\nAccess: Platform administrator",
        "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"
          },
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "issuerProgramId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "companyId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{12,100}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "distribution",
                      "expense",
                      "both"
                    ]
                  },
                  "reloadable": {
                    "type": "boolean"
                  },
                  "brandName": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 120
                  },
                  "brandColor": {
                    "type": "string",
                    "pattern": "^#[a-fA-F0-9]{6}$"
                  },
                  "supportEmail": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "logoUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "feeAmount": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "issuerProgramId",
                  "name",
                  "purpose",
                  "reloadable",
                  "brandName",
                  "brandColor",
                  "supportEmail"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/programs/{id}/activate": {
      "post": {
        "operationId": "post__api_v1_admin_programs__id__activate",
        "tags": [
          "Administration"
        ],
        "summary": "Activate a company program",
        "description": "Requires approved KYB, completed program launch checks, permitted company country and an active issuing program. A submitted application or signed document does not satisfy these gates.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/programs/{id}/suspend": {
      "post": {
        "operationId": "post__api_v1_admin_programs__id__suspend",
        "tags": [
          "Administration"
        ],
        "summary": "Suspend a company program",
        "description": "Suspends program availability.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/recipients/{id}/review": {
      "post": {
        "operationId": "post__api_v1_admin_recipients__id__review",
        "tags": [
          "Administration"
        ],
        "summary": "Record a provider KYC decision",
        "description": "Records an external identity outcome with a verified provider decision reference.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "accepted",
                      "rejected",
                      "resubmission_required"
                    ]
                  },
                  "providerReference": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 500
                  }
                },
                "required": [
                  "version",
                  "decision",
                  "providerReference"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/operations/{id}/reconcile": {
      "post": {
        "operationId": "post__api_v1_admin_operations__id__reconcile",
        "tags": [
          "Administration"
        ],
        "summary": "Reconcile a financial operation",
        "description": "Reads the original known provider transfer. This route never blindly repeats an uncertain financial write.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/operations/{id}/receipt": {
      "post": {
        "operationId": "post__api_v1_admin_operations__id__receipt",
        "tags": [
          "Administration"
        ],
        "summary": "Match a funding receipt",
        "description": "Reads the actual provider receipt and verifies reference, amount, currency and funding account before crediting.\n\nAccess: 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": {
          "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "providerReference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": [
                  "providerReference"
                ]
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/program-requests": {
      "get": {
        "operationId": "get__api_v1_admin_program_requests",
        "tags": [
          "Administration"
        ],
        "summary": "List commercial inquiries",
        "description": "Returns inquiries submitted through the public website.\n\nAccess: Platform administrator",
        "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"
          }
        },
        "servers": [
          {
            "url": "https://admin.digitalcard.technology"
          }
        ]
      }
    }
  }
}