{
  "openapi": "3.0.1",
  "info": {
    "title": "Meroshare IPO Applier",
    "description": "Automated IPO application for Meroshare platform using Playwright.",
    "version": "2.1",
    "x-build-id": "eJ9VzR5EoxlMNm1yU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/woundless_insurance~meroshare-ipo-applier/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-woundless_insurance-meroshare-ipo-applier",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/woundless_insurance~meroshare-ipo-applier/runs": {
      "post": {
        "operationId": "runs-sync-woundless_insurance-meroshare-ipo-applier",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/woundless_insurance~meroshare-ipo-applier/run-sync": {
      "post": {
        "operationId": "run-sync-woundless_insurance-meroshare-ipo-applier",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "primary_dp": {
            "title": "Select Your DP",
            "enum": [
              "19000",
              "20600",
              "13200",
              "12300",
              "17200",
              "22300",
              "21800",
              "11900",
              "17500",
              "14700",
              "23200",
              "19100",
              "15000",
              "20700",
              "15600",
              "20900",
              "19500",
              "11700",
              "13300",
              "13400",
              "12000",
              "14500",
              "11300",
              "14900",
              "20300",
              "19800",
              "10800",
              "17600",
              "21900",
              "11100",
              "12200",
              "11200",
              "16200",
              "18000",
              "20500",
              "22900",
              "19600",
              "10100",
              "17700",
              "22800",
              "17400",
              "13100",
              "20000",
              "20800",
              "19900",
              "23100",
              "23300",
              "17900",
              "22000",
              "20100",
              "18700",
              "18200",
              "14300",
              "15200",
              "16300",
              "10700",
              "12400",
              "13800",
              "16100",
              "14100",
              "21400",
              "22200",
              "16700",
              "18900",
              "13600",
              "21600",
              "19700",
              "21100",
              "12500",
              "15900",
              "15100",
              "16800",
              "10400",
              "20400",
              "23400",
              "15700",
              "15500",
              "23500",
              "16400",
              "15300",
              "11500",
              "13700",
              "10200",
              "10600",
              "17300",
              "11000",
              "11800",
              "21200",
              "17000",
              "21300",
              "13900",
              "16000",
              "12600",
              "22600",
              "14800",
              "15400",
              "16900",
              "12800",
              "18600",
              "19400",
              "16600",
              "23000",
              "16500",
              "22100",
              "21500",
              "21700",
              "18100",
              "14400",
              "15800",
              "22400",
              "11600",
              "12700",
              "18400",
              "19200",
              "18500",
              "18800",
              "12900",
              "20200",
              "10900",
              "14600",
              "13000",
              "14000",
              "21000",
              "14200",
              "19300",
              "17800",
              "22500",
              "18300",
              "22700",
              "11400",
              "17100",
              "13500"
            ],
            "type": "string",
            "description": "Required for the primary account (leave empty only if you use Additional Accounts). Search and select your Depository Participant (DP)."
          },
          "primary_accountName": {
            "title": "Account Name (Optional)",
            "type": "string",
            "description": "An optional label for this account in the output logs. If left empty, it will default to 'Applicant (<Username>)'."
          },
          "primary_username": {
            "title": "Username",
            "type": "string",
            "description": "Required for the primary account (leave empty only if you use Additional Accounts). Your Meroshare login username (BOID)."
          },
          "primary_password": {
            "title": "Password",
            "type": "string",
            "description": "Required for the primary account (leave empty only if you use Additional Accounts). Your Meroshare login password."
          },
          "primary_pin": {
            "title": "Transaction PIN",
            "type": "string",
            "description": "Required for the primary account (leave empty only if you use Additional Accounts). Your 4-digit Meroshare Transaction PIN."
          },
          "primary_crn": {
            "title": "CRN Number",
            "type": "string",
            "description": "Required for the primary account (leave empty only if you use Additional Accounts). The CRN number provided by your bank."
          },
          "primary_bankName": {
            "title": "Bank Dropdown Position (1-10)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Used only when \"Bank Name\" is empty. Position of your bank in the Meroshare bank dropdown; 1 = first bank.",
            "default": 1
          },
          "primary_bank": {
            "title": "Bank Name (optional)",
            "type": "string",
            "description": "Part of your bank's name as shown in Meroshare, e.g. \"NMB\" or \"Global IME\". Matched fuzzily. Takes precedence over the dropdown position."
          },
          "primary_kitta": {
            "title": "Units (Kitta)",
            "type": "integer",
            "description": "Optional. The number of units to apply for. Default is 10.",
            "default": 10
          },
          "always_apply_min_kitta": {
            "title": "Always Apply Minimum Kitta",
            "type": "boolean",
            "description": "Optional. If enabled, auto-adjusts your requested units to match the IPO's required minimum if your input is too low. Default is OFF (will strictly use your input).",
            "default": false
          },
          "minPrice": {
            "title": "Minimum Share Price (NPR)",
            "type": "integer",
            "description": "Skip IPOs with unit price lower than this. 0 for no limit.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum Share Price (NPR)",
            "type": "integer",
            "description": "Skip IPOs with unit price higher than this. 0 for no limit.",
            "default": 0
          },
          "dryRun": {
            "title": "Dry Run (Test Only)",
            "type": "boolean",
            "description": "If true, will NOT submit the application.",
            "default": false
          },
          "accounts": {
            "title": "Additional Accounts (Batch Mode, encrypted)",
            "type": "array",
            "description": "Optional. A JSON array of extra accounts to process in the same run. The whole list is encrypted because it contains passwords, PINs and CRNs. Each item: {\"accountName\": \"Ram\", \"dp\": \"10600\", \"username\": \"<username>\", \"password\": \"<password>\", \"pin\": \"<4-digit PIN>\", \"crn\": \"<CRN>\", \"bankName\": \"NMB\", \"defaultKitta\": 10, \"alwaysApplyMinKitta\": false}. bankName is part of the bank's name or its dropdown position (1-10). Accounts missing dp, username, password, pin or crn are skipped."
          },
          "screenshotMode": {
            "title": "Debug Screenshots",
            "enum": [
              "failures",
              "all",
              "off"
            ],
            "type": "string",
            "description": "When to save screenshots to the run's key-value store. Sensitive fields (CRN, PIN, account number) are always masked. 'All' also captures the filled form and PIN dialog.",
            "default": "failures"
          },
          "historyStoreName": {
            "title": "History Store Name",
            "type": "string",
            "description": "Name of the persistent key-value store that remembers completed applications across runs (prevents duplicate applications). Use the same name in every run/task.",
            "default": "meroshare-ipo-history"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}