{
  "info": {
    "name": "SimpleSMS API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://fenjueauto.com"
    },
    {
      "key": "accessKey",
      "value": "YOUR_ACCESS_KEY"
    },
    {
      "key": "orderId",
      "value": "AGW_example"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{accessKey}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Balance",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/v1/balance"
      }
    },
    {
      "name": "SMS Prices",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/v1/catalog/prices?limit=50"
      }
    },
    {
      "name": "Email Prices",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/v1/catalog/email-prices"
      }
    },
    {
      "name": "Create SMS Order",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"type\": \"sms\",\n  \"country\": 52,\n  \"tierId\": \"sms:TH:0.120000\",\n  \"maxPrice\": 0.12\n}"
        },
        "url": "{{baseUrl}}/v1/orders"
      }
    },
    {
      "name": "Get Order",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/v1/orders/{{orderId}}"
      }
    },
    {
      "name": "Mark Order Ready",
      "request": {
        "method": "POST",
        "url": "{{baseUrl}}/v1/orders/{{orderId}}/ready"
      }
    },
    {
      "name": "Get Webhook Config",
      "request": {
        "method": "GET",
        "url": "{{baseUrl}}/v1/webhook"
      }
    },
    {
      "name": "Set Webhook Config",
      "request": {
        "method": "PUT",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"https://example.com/simplesms-webhook\",\n  \"secret\": \"optional-signing-secret\",\n  \"enabled\": true\n}"
        },
        "url": "{{baseUrl}}/v1/webhook"
      }
    },
    {
      "name": "Cancel Order",
      "request": {
        "method": "POST",
        "url": "{{baseUrl}}/v1/orders/{{orderId}}/cancel"
      }
    }
  ]
}
