{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "Seata server provides API to ensure the transaction consistency for the remote call in the micro-service context.",
    "version" : "1.0/seata-server-v2",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "Seata server provides API to ensure the transaction consistency for the remote call in the micro-service context."
  },
  "servers" : [ {
    "url" : "http://seata-server-v2.platform"
  } ],
  "paths" : {
    "/seata-server/seata-server/beginGlobal" : {
      "post" : {
        "tags" : [ "GlobalTransaction" ],
        "summary" : "Begins a new global transaction with the provided GlobalBeginRequest.",
        "operationId" : "beginGlobal",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GlobalBeginRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/GlobalBeginResponse"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Begins a new global transaction with the provided GlobalBeginRequest."
      }
    },
    "/seata-server/seata-server/commitGlobal" : {
      "post" : {
        "tags" : [ "GlobalTransaction" ],
        "summary" : "Commits an existing global transaction using the details in GlobalCommitRequest.",
        "operationId" : "commitGlobal",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GlobalCommitRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/GlobalCommitResponse"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Commits an existing global transaction using the details in GlobalCommitRequest."
      }
    },
    "/seata-server/seata-server/globalStatus" : {
      "post" : {
        "tags" : [ "GlobalTransaction" ],
        "summary" : "Queries the status of a global transaction based on the GlobalStatusRequest.",
        "operationId" : "globalStatus",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GlobalStatusRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/GlobalStatusResponse"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Queries the status of a global transaction based on the GlobalStatusRequest."
      }
    },
    "/seata-server/seata-server/queryGlobalLock" : {
      "post" : {
        "tags" : [ "GlobalTransaction" ],
        "summary" : "Checks if a global lock can be acquired using the GlobalLockQueryRequest.",
        "operationId" : "queryGlobalLock",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GlobalLockQueryRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/GlobalLockQueryResponse"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Checks if a global lock can be acquired using the GlobalLockQueryRequest."
      }
    },
    "/seata-server/seata-server/rollbackGlobal" : {
      "post" : {
        "tags" : [ "GlobalTransaction" ],
        "summary" : "Rolls back a global transaction as specified by the GlobalRollbackRequest.",
        "operationId" : "rollbackGlobal",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GlobalRollbackRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/GlobalRollbackResponse"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Rolls back a global transaction as specified by the GlobalRollbackRequest."
      }
    }
  },
  "components" : {
    "schemas" : {
      "GlobalBeginRequest" : {
        "type" : "object",
        "properties" : {
          "ClientAppliationName" : {
            "type" : "string"
          },
          "ClientVersion" : {
            "type" : "integer",
            "format" : "int32"
          },
          "Timeout" : {
            "type" : "integer",
            "format" : "int32"
          },
          "TransactionName" : {
            "type" : "string"
          },
          "tcinboundHandler" : {
            "$ref" : "#/components/schemas/TCInboundHandler"
          }
        }
      },
      "GlobalBeginResponse" : {
        "type" : "object",
        "properties" : {
          "ExtraData" : {
            "type" : "string"
          },
          "Msg" : {
            "type" : "string"
          },
          "ResultCode" : {
            "type" : "string",
            "enum" : [ "Failed", "Success" ]
          },
          "TransactionExceptionCode" : {
            "type" : "string",
            "enum" : [ "Unknown", "BeginFailed", "LockKeyConflict", "IO", "BranchRollbackFailed_Retriable", "BranchRollbackFailed_Unretriable", "BranchRegisterFailed", "BranchReportFailed", "LockableCheckFailed", "BranchTransactionNotExist", "GlobalTransactionNotExist", "GlobalTransactionNotActive", "GlobalTransactionStatusInvalid", "FailedToSendBranchCommitRequest", "FailedToSendBranchRollbackRequest", "FailedToAddBranch", "FailedLockGlobalTranscation", "FailedWriteSession" ]
          },
          "Xid" : {
            "type" : "string"
          }
        }
      },
      "GlobalCommitRequest" : {
        "type" : "object",
        "properties" : {
          "ClientAppliationName" : {
            "type" : "string"
          },
          "ClientVersion" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ExtraData" : {
            "type" : "string"
          },
          "Xid" : {
            "type" : "string"
          },
          "tcinboundHandler" : {
            "$ref" : "#/components/schemas/TCInboundHandler"
          }
        }
      },
      "GlobalCommitResponse" : {
        "type" : "object",
        "properties" : {
          "GlobalStatus" : {
            "type" : "string",
            "enum" : [ "UnKnown", "Begin", "Committing", "CommitRetrying", "Rollbacking", "RollbackRetrying", "TimeoutRollbacking", "TimeoutRollbackRetrying", "AsyncCommitting", "Committed", "CommitFailed", "Rollbacked", "RollbackFailed", "TimeoutRollbacked", "TimeoutRollbackFailed", "Finished" ]
          },
          "Msg" : {
            "type" : "string"
          },
          "ResultCode" : {
            "type" : "string",
            "enum" : [ "Failed", "Success" ]
          },
          "TransactionExceptionCode" : {
            "type" : "string",
            "enum" : [ "Unknown", "BeginFailed", "LockKeyConflict", "IO", "BranchRollbackFailed_Retriable", "BranchRollbackFailed_Unretriable", "BranchRegisterFailed", "BranchReportFailed", "LockableCheckFailed", "BranchTransactionNotExist", "GlobalTransactionNotExist", "GlobalTransactionNotActive", "GlobalTransactionStatusInvalid", "FailedToSendBranchCommitRequest", "FailedToSendBranchRollbackRequest", "FailedToAddBranch", "FailedLockGlobalTranscation", "FailedWriteSession" ]
          }
        }
      },
      "GlobalLockQueryRequest" : {
        "type" : "object",
        "properties" : {
          "ApplicationData" : {
            "type" : "string"
          },
          "BranchType" : {
            "type" : "string",
            "enum" : [ "AT", "TCC" ]
          },
          "ClientAppliationName" : {
            "type" : "string"
          },
          "ClientVersion" : {
            "type" : "integer",
            "format" : "int32"
          },
          "IsExternalApp" : {
            "type" : "string",
            "deprecated" : true
          },
          "LockKey" : {
            "type" : "string"
          },
          "ResourceId" : {
            "type" : "string"
          },
          "Xid" : {
            "type" : "string"
          },
          "tcinboundHandler" : {
            "$ref" : "#/components/schemas/TCInboundHandler"
          }
        }
      },
      "GlobalLockQueryResponse" : {
        "type" : "object",
        "properties" : {
          "Lockable" : {
            "type" : "boolean"
          },
          "Msg" : {
            "type" : "string"
          },
          "ResultCode" : {
            "type" : "string",
            "enum" : [ "Failed", "Success" ]
          },
          "TransactionExceptionCode" : {
            "type" : "string",
            "enum" : [ "Unknown", "BeginFailed", "LockKeyConflict", "IO", "BranchRollbackFailed_Retriable", "BranchRollbackFailed_Unretriable", "BranchRegisterFailed", "BranchReportFailed", "LockableCheckFailed", "BranchTransactionNotExist", "GlobalTransactionNotExist", "GlobalTransactionNotActive", "GlobalTransactionStatusInvalid", "FailedToSendBranchCommitRequest", "FailedToSendBranchRollbackRequest", "FailedToAddBranch", "FailedLockGlobalTranscation", "FailedWriteSession" ]
          }
        }
      },
      "GlobalRollbackRequest" : {
        "type" : "object",
        "properties" : {
          "ClientAppliationName" : {
            "type" : "string"
          },
          "ClientVersion" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ExtraData" : {
            "type" : "string"
          },
          "Xid" : {
            "type" : "string"
          },
          "tcinboundHandler" : {
            "$ref" : "#/components/schemas/TCInboundHandler"
          }
        }
      },
      "GlobalRollbackResponse" : {
        "type" : "object",
        "properties" : {
          "GlobalStatus" : {
            "type" : "string",
            "enum" : [ "UnKnown", "Begin", "Committing", "CommitRetrying", "Rollbacking", "RollbackRetrying", "TimeoutRollbacking", "TimeoutRollbackRetrying", "AsyncCommitting", "Committed", "CommitFailed", "Rollbacked", "RollbackFailed", "TimeoutRollbacked", "TimeoutRollbackFailed", "Finished" ]
          },
          "Msg" : {
            "type" : "string"
          },
          "ResultCode" : {
            "type" : "string",
            "enum" : [ "Failed", "Success" ]
          },
          "TransactionExceptionCode" : {
            "type" : "string",
            "enum" : [ "Unknown", "BeginFailed", "LockKeyConflict", "IO", "BranchRollbackFailed_Retriable", "BranchRollbackFailed_Unretriable", "BranchRegisterFailed", "BranchReportFailed", "LockableCheckFailed", "BranchTransactionNotExist", "GlobalTransactionNotExist", "GlobalTransactionNotActive", "GlobalTransactionStatusInvalid", "FailedToSendBranchCommitRequest", "FailedToSendBranchRollbackRequest", "FailedToAddBranch", "FailedLockGlobalTranscation", "FailedWriteSession" ]
          }
        }
      },
      "GlobalStatusRequest" : {
        "type" : "object",
        "properties" : {
          "ClientAppliationName" : {
            "type" : "string"
          },
          "ClientVersion" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ExtraData" : {
            "type" : "string"
          },
          "Xid" : {
            "type" : "string"
          },
          "tcinboundHandler" : {
            "$ref" : "#/components/schemas/TCInboundHandler"
          }
        }
      },
      "GlobalStatusResponse" : {
        "type" : "object",
        "properties" : {
          "GlobalStatus" : {
            "type" : "string",
            "enum" : [ "UnKnown", "Begin", "Committing", "CommitRetrying", "Rollbacking", "RollbackRetrying", "TimeoutRollbacking", "TimeoutRollbackRetrying", "AsyncCommitting", "Committed", "CommitFailed", "Rollbacked", "RollbackFailed", "TimeoutRollbacked", "TimeoutRollbackFailed", "Finished" ]
          },
          "Msg" : {
            "type" : "string"
          },
          "ResultCode" : {
            "type" : "string",
            "enum" : [ "Failed", "Success" ]
          },
          "TransactionExceptionCode" : {
            "type" : "string",
            "enum" : [ "Unknown", "BeginFailed", "LockKeyConflict", "IO", "BranchRollbackFailed_Retriable", "BranchRollbackFailed_Unretriable", "BranchRegisterFailed", "BranchReportFailed", "LockableCheckFailed", "BranchTransactionNotExist", "GlobalTransactionNotExist", "GlobalTransactionNotActive", "GlobalTransactionStatusInvalid", "FailedToSendBranchCommitRequest", "FailedToSendBranchRollbackRequest", "FailedToAddBranch", "FailedLockGlobalTranscation", "FailedWriteSession" ]
          }
        }
      },
      "TCInboundHandler" : {
        "type" : "object"
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}