{
  "info": {
    "name": "SablePay API",
    "description": "SablePay REST API collection",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.sablepay.io/api/v1"
    }
  ],
  "item": [
    {
      "name": "Create Payment",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "X-Merchant-ID", "value": "{{merchantId}}" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": 10.0\n}"
        },
        "url": "{{baseUrl}}/payments/create"
      }
    },
    {
      "name": "List Payments",
      "request": {
        "method": "GET",
        "header": [
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "X-Merchant-ID", "value": "{{merchantId}}" }
        ],
        "url": "{{baseUrl}}/payments?limit=10"
      }
    },
    {
      "name": "Get Payment Status",
      "request": {
        "method": "GET",
        "header": [
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "X-Merchant-ID", "value": "{{merchantId}}" }
        ],
        "url": "{{baseUrl}}/payments/:id"
      }
    }
  ]
}
