{
 "openapi": "3.1.0",
 "info": {
  "title": "Card Charge Batches (Accounting)",
  "version": "20261030b",
  "description": "Due mandates charged in runs, each run one batch for the acquirer. Exporting a batch is the one place card numbers are decrypted."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/accounting/card-charge-batches": {
   "get": {
    "summary": "Read card charge batches",
    "operationId": "action_card_charge_batches_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/card-charge-batches/due": {
   "get": {
    "summary": "Due",
    "operationId": "action_card_charge_batches_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/card-charge-batches/{id}": {
   "get": {
    "summary": "Read card charge batches",
    "operationId": "action_card_charge_batches_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/card-charge-batches/run": {
   "post": {
    "summary": "Run",
    "operationId": "action_card_charge_batches_0_5",
    "description": "Body keys: asOf",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/card-charge-batches/{id}/charges/{chargeId}/result": {
   "post": {
    "summary": "Charges result",
    "operationId": "action_card_charge_batches_0_8",
    "description": "Body keys: status, failureReason, acquirerRef",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}