{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "This module is used for currency setting. Due to different countries using different currencies, this module can configure local currencies based on different countries or regions, or obtain locally available currencies based on regions or countries.",
    "version" : "1.0/platform-busi-config",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "This module is used for currency setting. Due to different countries using different currencies, this module can configure local currencies based on different countries or regions, or obtain locally available currencies based on regions or countries."
  },
  "servers" : [ {
    "url" : "http://platform-busi-config.platform"
  } ],
  "paths" : {
    "/currency/public/common/currency/exchangeRate/v1/bySourceCurrency" : {
      "get" : {
        "tags" : [ "CurrencyExchange" ],
        "summary" : "Retrieves the exchange rate for a specific source currency, optionally filtered by date.",
        "operationId" : "getExchangeRate",
        "parameters" : [ {
          "name" : "currency",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "date",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CurrencyExchangeRate"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves the exchange rate for a specific source currency, optionally filtered by date."
      }
    },
    "/currency/public/common/currency/exchangeRate/v1/getExchangeRateNew" : {
      "get" : {
        "tags" : [ "CurrencyExchange" ],
        "summary" : "Fetches the latest exchange rate for a given currency with an optional date parameter.",
        "operationId" : "getExchangeRateNew",
        "parameters" : [ {
          "name" : "currency",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "date",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "format" : "date-time"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CurrencyExchangeRate"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Fetches the latest exchange rate for a given currency with an optional date parameter."
      }
    },
    "/currency/public/common/currency/setting/v1/bookingCurrencyCode" : {
      "get" : {
        "tags" : [ "CurrencySetting" ],
        "summary" : "Returns the booking currency code based on the provided branch code.",
        "operationId" : "getBookingCurrencyCode",
        "parameters" : [ {
          "name" : "branchCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Returns the booking currency code based on the provided branch code."
      }
    },
    "/currency/public/common/currency/setting/v1/byBranchCode" : {
      "get" : {
        "tags" : [ "CurrencySetting" ],
        "summary" : "Gets detailed currency settings for a specific branch using the branch code.",
        "operationId" : "getSettingOfBranch",
        "parameters" : [ {
          "name" : "branchCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CurrencySetting"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Gets detailed currency settings for a specific branch using the branch code."
      }
    },
    "/currency/public/common/currency/setting/v1/listAll" : {
      "get" : {
        "tags" : [ "CurrencySetting" ],
        "summary" : "Lists all available currency settings across branches.",
        "operationId" : "listAllSettings",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/CurrencySetting"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Lists all available currency settings across branches."
      }
    },
    "/currency/public/common/currency/setting/v1/localCurrencyCode" : {
      "get" : {
        "tags" : [ "CurrencySetting" ],
        "summary" : "Retrieves the local currency code associated with a specific branch code.",
        "operationId" : "getLocalCurrencyCode",
        "parameters" : [ {
          "name" : "branchCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves the local currency code associated with a specific branch code."
      }
    },
    "/currency/public/common/currency/v1/byCode" : {
      "get" : {
        "tags" : [ "CurrencyType" ],
        "summary" : "Fetches currency details based on the provided currency code.",
        "operationId" : "getCurrencyByCode",
        "parameters" : [ {
          "name" : "code",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CurrencyType"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Fetches currency details based on the provided currency code."
      }
    },
    "/currency/public/common/currency/v1/listActive" : {
      "get" : {
        "tags" : [ "CurrencyType" ],
        "summary" : "Lists all active currencies currently in use.",
        "operationId" : "getActiveCurrencyList",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/CurrencyType"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Lists all active currencies currently in use."
      }
    },
    "/currency/public/common/currency/v1/listAll" : {
      "get" : {
        "tags" : [ "CurrencyType" ],
        "summary" : "Provides a comprehensive list of all currencies, both active and inactive.",
        "operationId" : "getAllCurrency",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/CurrencyType"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Provides a comprehensive list of all currencies, both active and inactive."
      }
    }
  },
  "components" : {
    "schemas" : {
      "CurrencyExchangeRate" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "EffectiveDate" : {
            "type" : "string",
            "format" : "date-time"
          },
          "ExchangeRates" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "number"
            }
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RateId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "SourceCurrencyCode" : {
            "type" : "string"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          }
        }
      },
      "CurrencySetting" : {
        "type" : "object",
        "properties" : {
          "BookingCurrencyCode" : {
            "type" : "string"
          },
          "BranchCode" : {
            "type" : "string"
          },
          "LocalCurrencyCode" : {
            "type" : "string"
          }
        }
      },
      "CurrencyType" : {
        "type" : "object",
        "properties" : {
          "CurrencyCode" : {
            "type" : "string"
          },
          "CurrencyDesc" : {
            "type" : "string"
          },
          "CurrencyName" : {
            "type" : "string"
          },
          "CurrencySymbol" : {
            "type" : "string"
          },
          "IsActive" : {
            "type" : "string"
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}