{
  "info": {
    "name": "SMSOnline Ghana API v5",
    "description": "Collection for testing SMSOnline Ghana API v5 integration",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Check Balance",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "Authorization",
            "value": "key 888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "url": {
          "raw": "https://api.smsonlinegh.com/v5/account/balance",
          "protocol": "https",
          "host": [
            "api",
            "smsonlinegh",
            "com"
          ],
          "path": [
            "v5",
            "account",
            "balance"
          ]
        },
        "description": "Check SMS account balance and credits"
      },
      "response": []
    },
    {
      "name": "Send SMS - Single Recipient",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "key 888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"text\": \"Test SMS from Revenue Assurance System. This is a test message.\",\n  \"type\": 0,\n  \"sender\": \"LaDMA\",\n  \"destinations\": [\n    {\n      \"number\": \"233532700209\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://api.smsonlinegh.com/v5/message/sms/send",
          "protocol": "https",
          "host": [
            "api",
            "smsonlinegh",
            "com"
          ],
          "path": [
            "v5",
            "message",
            "sms",
            "send"
          ]
        },
        "description": "Send SMS to a single recipient"
      },
      "response": []
    },
    {
      "name": "Send SMS - Multiple Recipients",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "key 888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"text\": \"Test SMS from Revenue Assurance System. This is a test message to multiple recipients.\",\n  \"type\": 0,\n  \"sender\": \"LaDMA\",\n  \"destinations\": [\n    {\n      \"number\": \"233532700209\"\n    },\n    {\n      \"number\": \"233501234567\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://api.smsonlinegh.com/v5/message/sms/send",
          "protocol": "https",
          "host": [
            "api",
            "smsonlinegh",
            "com"
          ],
          "path": [
            "v5",
            "message",
            "sms",
            "send"
          ]
        },
        "description": "Send SMS to multiple recipients"
      },
      "response": []
    },
    {
      "name": "Send SMS - Business Permit Notification",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "key 888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"text\": \"New Business Permit added: ABC Trading Ltd (Ref: BP-2024-001). Amount: GHS 500.00. Login at portal.revenue.gov.gh to view and pay. - LaDMA\",\n  \"type\": 0,\n  \"sender\": \"LaDMA\",\n  \"destinations\": [\n    {\n      \"number\": \"233532700209\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://api.smsonlinegh.com/v5/message/sms/send",
          "protocol": "https",
          "host": [
            "api",
            "smsonlinegh",
            "com"
          ],
          "path": [
            "v5",
            "message",
            "sms",
            "send"
          ]
        },
        "description": "Send Business Permit notification SMS (example format)"
      },
      "response": []
    },
    {
      "name": "Send SMS - Property Rate Notification",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "key 888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"text\": \"New Property Rate added: House No. 123 Main St (Ref: PR-2024-001). Amount: GHS 1,200.00. Login at portal.revenue.gov.gh to view and pay. - LaDMA\",\n  \"type\": 0,\n  \"sender\": \"LaDMA\",\n  \"destinations\": [\n    {\n      \"number\": \"233532700209\"\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://api.smsonlinegh.com/v5/message/sms/send",
          "protocol": "https",
          "host": [
            "api",
            "smsonlinegh",
            "com"
          ],
          "path": [
            "v5",
            "message",
            "sms",
            "send"
          ]
        },
        "description": "Send Property Rate notification SMS (example format)"
      },
      "response": []
    },
    {
      "name": "Send SMS - Personalized (with variables)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Authorization",
            "value": "key 888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
            "type": "text"
          },
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text"
          },
          {
            "key": "Accept",
            "value": "application/json",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"text\": \"Hello {$name}, your payment of GHS {$amount} has been received. Thank you! - LaDMA\",\n  \"type\": 0,\n  \"sender\": \"LaDMA\",\n  \"destinations\": [\n    {\n      \"number\": \"233532700209\",\n      \"values\": [\n        \"John Doe\",\n        \"500.00\"\n      ]\n    },\n    {\n      \"number\": \"233501234567\",\n      \"values\": [\n        \"Jane Smith\",\n        \"750.00\"\n      ]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://api.smsonlinegh.com/v5/message/sms/send",
          "protocol": "https",
          "host": [
            "api",
            "smsonlinegh",
            "com"
          ],
          "path": [
            "v5",
            "message",
            "sms",
            "send"
          ]
        },
        "description": "Send personalized SMS with variables to multiple recipients"
      },
      "response": []
    }
  ],
  "variable": [
    {
      "key": "api_key",
      "value": "888a6e70596fe2f0fd5224d12420aa362e84f99ee85571728b44bb5355b3fcf8",
      "type": "string"
    },
    {
      "key": "sender_id",
      "value": "LaDMA",
      "type": "string"
    },
    {
      "key": "base_url",
      "value": "https://api.smsonlinegh.com/v5",
      "type": "string"
    }
  ]
}
