{
  "info": {
    "_postman_id": "whish-variable-topup",
    "name": "Whish \u00b7 Variable Topup (v1.1)",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Variable Topup API (itel-service). Set sessionId, token and userAgent as collection variables."
  },
  "item": [
    {
      "name": "Get balance",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "sessionId",
            "value": "{{sessionId}}"
          },
          {
            "key": "token",
            "value": "{{token}}"
          },
          {
            "key": "User-Agent",
            "value": "{{userAgent}}"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/account/balance",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "account",
            "balance"
          ]
        }
      }
    },
    {
      "name": "Post variable topup",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "sessionId",
            "value": "{{sessionId}}"
          },
          {
            "key": "token",
            "value": "{{token}}"
          },
          {
            "key": "User-Agent",
            "value": "{{userAgent}}"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/transfer/airtime",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "transfer",
            "airtime"
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"externalId\": 1234,\n  \"id\": 40000,\n  \"countryCode\": \"971\",\n  \"msisdn\": \"971522222222\",\n  \"amount\": 50.0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.whish.money/itel-service/api"
    },
    {
      "key": "sessionId",
      "value": "YOUR_SESSION_ID"
    },
    {
      "key": "token",
      "value": "YOUR_TOKEN"
    },
    {
      "key": "userAgent",
      "value": "AcmeStore/1.0 (https://acme.example; dev@acme.example)"
    }
  ]
}