{
 "openapi": "3.1.0",
 "info": {
  "title": "Tax (Accounting)",
  "version": "20261030b",
  "description": "The tax service of Accounting: 7 operation(s)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/accounting/tax/determine": {
   "post": {
    "summary": "Determine",
    "operationId": "action_tax_0_5",
    "description": "Body keys: transactionType, shipFromCountry, shipFromRegion, shipToCountry, shipToRegion, itemId, accountId, supplierId, classificationId, amount, date, partnerRegistration, shipTo, shipToPostalCode, shipToCity, shipToCounty, shipFrom, shipFromPostalCode, shipFromCity, quantity, unitPrice, taxClassification",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/tax/returns/prepare": {
   "post": {
    "summary": "Returns prepare",
    "operationId": "action_tax_0_6",
    "description": "Body keys: templateCode, periodCode",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/tax/returns/{id}/file": {
   "post": {
    "summary": "Returns file",
    "operationId": "action_tax_0_7",
    "description": "Body keys: skipApproval, post, inputAccountNo, outputAccountNo, payableAccountNo, receivableAccountNo, filingReference, acknowledgementNo, declared",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/tax/returns/{id}/amend": {
   "post": {
    "summary": "Returns amend",
    "operationId": "action_tax_0_7",
    "description": "Body keys: reason*",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/tax/withholding/compute": {
   "post": {
    "summary": "Withholding compute",
    "operationId": "action_tax_0_6",
    "description": "Body keys: supplierId, typeCode, grossAmount, taxAmount, treatyCountry, date",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/tax/deferred/calculate": {
   "post": {
    "summary": "Deferred calculate",
    "operationId": "action_tax_0_6",
    "description": "Body keys: periodCode",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/accounting/tax/summary": {
   "get": {
    "summary": "Summary",
    "operationId": "action_tax_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}