{
  "opencollection": "1.0.0",
  "info": {
    "name": "Stark Bank Balance Merchant Session API",
    "version": "v2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Digital-Signature",
      "value": "{{Digital-Signature}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Merchant Session",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Merchant Sessions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.starkbank.com/v2/merchant-session",
            "params": [
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Filter entities created after this date."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Filter entities created before this date."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "String used to get the next batch of results. Our SDKs handle this for you."
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "List of strings to filter response JSON keys. Not available in the SDKs."
              },
              {
                "name": "ids",
                "value": "",
                "type": "query",
                "description": "List of strings to get specific entities by ids."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results per cursor. Max = 100."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter sessions by the specified status, such as: active, expired, success."
              },
              {
                "name": "tags",
                "value": "",
                "type": "query",
                "description": "Filter entities that contain the specified tags."
              }
            ]
          },
          "docs": "Get a list of merchant sessions in chunks of at most 100. If you need smaller chunks, use the limit parameter."
        },
        {
          "info": {
            "name": "Create Merchant Sessions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.starkbank.com/v2/merchant-session",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This route allows the merchant to create a session that can be used by the card holder's application to create a new purchase.\nThe UUID parameter returned by the session should be used to create a Merchant Session Purchase.\n"
        },
        {
          "info": {
            "name": "Create Merchant Session Purchase",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.starkbank.com/v2/merchant-session/:uuid/purchase",
            "params": [
              {
                "name": "uuid",
                "value": "",
                "type": "path",
                "description": "The UUID of the Merchant Session created by the merchant to process the purchase."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This route can be used to create a Merchant Purchase directly from the payer's client application.\nThe UUID of a Merchant Session that was previously created by the merchant is necessary to access this route.\n"
        },
        {
          "info": {
            "name": "Get a Merchant Session",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.starkbank.com/v2/merchant-session/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier for the merchant session that needs to be retrieved."
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "List of strings to filter response JSON keys. Not available in the SDKs."
              }
            ]
          },
          "docs": "Retrieve detailed information about a specific session by its id."
        },
        {
          "info": {
            "name": "List Merchant Session Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.starkbank.com/v2/merchant-session/log",
            "params": [
              {
                "name": "after",
                "value": "",
                "type": "query",
                "description": "Filter entities created after this date."
              },
              {
                "name": "before",
                "value": "",
                "type": "query",
                "description": "Filter entities created before this date."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "String used to get the next batch of results. Our SDKs handle this for you."
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "List of strings to filter response JSON keys. Not available in the SDKs."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results per cursor. Max = 100."
              },
              {
                "name": "sessionIds",
                "value": "",
                "type": "query",
                "description": "Filter the merchant session ids to only include its corresponding logs"
              },
              {
                "name": "types",
                "value": "",
                "type": "query",
                "description": "Filters logs by log types."
              }
            ]
          },
          "docs": "Get a paged list of merchant session logs.\nA log tracks a change in the session entity according to its life cycle.\n"
        },
        {
          "info": {
            "name": "Get a Merchant Session Log",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.starkbank.com/v2/merchant-session/log/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier for the merchant session that needs to be retrieved."
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "List of strings to filter response JSON keys. Not available in the SDKs."
              }
            ]
          },
          "docs": "Get a single merchant session log by its id."
        }
      ]
    }
  ],
  "bundled": true
}