{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "Numbering API can be called to generate sequence for all transaction numbers such as policy no, endorsement no, claim no etc. Normally, all our busienss API will already contain numbering generation feature and this SDK is not required. It is only useful when user want to reserve or generate transaction number before actual business transaction. Also, since it only involves number generation, user need to work with other business SDK to persist and fetch it later.",
    "version" : "1.0/platform-pub",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "Numbering API can be called to generate sequence for all transaction numbers such as policy no, endorsement no, claim no etc. Normally, all our busienss API will already contain numbering generation feature and this SDK is not required. It is only useful when user want to reserve or generate transaction number before actual business transaction. Also, since it only involves number generation, user need to work with other business SDK to persist and fetch it later."
  },
  "servers" : [ {
    "url" : "http://platform-pub.platform"
  } ],
  "paths" : {
    "/platform-pub/public/numbering/v1/bulkGenerateByTypeAndFactors" : {
      "post" : {
        "tags" : [ "Numbering" ],
        "summary" : "Bulk generates multiple transaction numbers based on the specified numbering type and factors.",
        "operationId" : "bulkGenerateByTypeAndFactors",
        "parameters" : [ {
          "name" : "numberingType",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "count",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : {
                  "type" : "string"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "factors"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Bulk generates multiple transaction numbers based on the specified numbering type and factors."
      }
    },
    "/platform-pub/public/numbering/v1/bulkInitOrUpdateSequence" : {
      "post" : {
        "tags" : [ "Numbering" ],
        "operationId" : "bulkInitOrUpdateNumberingSequence",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/NumberingSequenceInitRequest"
                }
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2026.02"
        }
      }
    },
    "/platform-pub/public/numbering/v1/generateByTypeAndFactors" : {
      "post" : {
        "tags" : [ "Numbering" ],
        "summary" : "Generates a single transaction number based on the specified numbering type and factors.",
        "operationId" : "generateNumberByTypeAndFactors",
        "parameters" : [ {
          "name" : "numberingType",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "object",
                "additionalProperties" : {
                  "type" : "string"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "factors"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Generates a single transaction number based on the specified numbering type and factors."
      }
    },
    "/platform-pub/public/numbering/v1/generateByTypeAndNumberFactors" : {
      "post" : {
        "tags" : [ "Numbering" ],
        "summary" : "Generates a transaction number using grouped numbering factors for more complex scenarios.",
        "operationId" : "generateNumberByTypeAndGroupedFactors",
        "parameters" : [ {
          "name" : "numberingType",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/NumberingFactors"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Generates a transaction number using grouped numbering factors for more complex scenarios."
      }
    },
    "/platform-pub/public/numbering/v1/initOrUpdateSequence" : {
      "post" : {
        "tags" : [ "Numbering" ],
        "operationId" : "initOrUpdateNumberingSequence",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/NumberingSequenceInitRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK"
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2026.02"
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "NumberingFactors" : {
        "type" : "object",
        "properties" : {
          "OtherFactors" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "SequenceFactors" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          }
        }
      },
      "NumberingSequenceInitRequest" : {
        "type" : "object",
        "properties" : {
          "Numbering" : {
            "type" : "string"
          },
          "NumberingType" : {
            "type" : "string"
          },
          "Sequence" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}