{
  "info": {
    "name": "Kart Kampanyaları ve Fırsatlar (SBX-FIRSAT)",
    "description": "Wings, World, Bonus, Maximum ve Axess'in güncel kart kampanyaları — taksit, indirim, puan ve çekilişler — sektöre ve hedef kitle segmentine (öğrenci, tatilci, araç sahibi vb.) göre etiketlenmiş, her gün yenilenir.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{SBX_API_KEY}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.servicebox.io",
      "type": "string"
    },
    {
      "key": "SBX_API_KEY",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "List card campaigns",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/deals/campaigns",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "deals",
            "campaigns"
          ],
          "query": [
            {
              "key": "card",
              "value": "string",
              "description": "Comma-separated card program ids from /deals/cards, e.g. bonus,axess.",
              "disabled": true
            },
            {
              "key": "sector",
              "value": "string",
              "description": "Comma-separated sector ids from /deals/sectors (any of), e.g. grocery,dining.",
              "disabled": true
            },
            {
              "key": "segment",
              "value": "string",
              "description": "Comma-separated segment ids from /deals/segments (any of), e.g. student,traveler.",
              "disabled": true
            },
            {
              "key": "reward",
              "value": "string",
              "description": "Comma-separated reward types (any of): installment, discount, points, draw, other.",
              "disabled": true
            },
            {
              "key": "brand",
              "value": "string",
              "description": "A merchant name as it appears in `brand`, e.g. Trendyol (case-insensitive).",
              "disabled": true
            },
            {
              "key": "q",
              "value": "string",
              "description": "Words to find at the start of words of the title, brand or summary; Turkish letters optional: `market`, `akaryakit`, `trendyol`.",
              "disabled": true
            },
            {
              "key": "status",
              "value": "active",
              "description": "`active` (default), `ended` (ended within the last 7 days) or `all`.",
              "disabled": true
            },
            {
              "key": "ending_within",
              "value": "31",
              "description": "Only active campaigns ending within this many days (1–60), soonest first.",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "50",
              "description": "Items per page, 1–200.",
              "disabled": true
            },
            {
              "key": "cursor",
              "value": "string",
              "description": "The `next_cursor` of the previous page, with the same filters.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "The current campaigns of Turkish credit-card programs — Wings, World, Bonus, Maximum and Axess — read daily from the programs' public campaign pages: installment offers, discounts, points (chip-para, Bonus, Worldpuan, MaxiPuan, miles) and prize draws, with the merchant, dates, amounts parsed from the headline, our sector tags and audience segments (student, traveler, driver, homemaker, …). Filter by `card`, `sector`, `segment`, `reward`, `brand`, a text search `q` (Turkish letters optional), and `ending_within` days; `status=ended` lists what ended in the last week. Soonest to end first. Use when the user asks what campaigns, discounts, installment offers or points their card has, for a shop or brand, for a kind of spending (market, fuel, travel, clothing), or for a kind of person; link the `url` for the terms — the program's page is authoritative.\n\nCredits: 1"
      }
    },
    {
      "name": "Get a campaign",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/deals/campaigns/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "deals",
            "campaigns",
            ":id"
          ],
          "query": [],
          "variable": [
            {
              "key": "id",
              "value": "string",
              "description": "A campaign id, `<card>:<slug>`."
            }
          ]
        },
        "description": "One campaign by its id from /deals/campaigns, e.g. bonus:bauhaus-yapi-taksit-kampanyasi. Ended campaigns stay for 7 days, then 404.\n\nCredits: 1"
      }
    },
    {
      "name": "List card programs",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/deals/cards",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "deals",
            "cards"
          ],
          "query": [],
          "variable": []
        },
        "description": "The five card programs covered — Wings (Şekerbank), World (Yapı Kredi), Bonus (Garanti BBVA), Maximum (İşbank), Axess (Akbank) — with their active campaign count, when each program's page was last read completely (`lastUpdated`), and the attribution to show. Free.\n\nCredits: 0"
      }
    },
    {
      "name": "List sectors",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/deals/sectors",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "deals",
            "sectors"
          ],
          "query": [],
          "variable": []
        },
        "description": "What a campaign is for — grocery, fuel & automotive, fashion, electronics, home, travel, dining, education, health, entertainment, online shopping, insurance, bills & taxes, card services, other — in English and Turkish, with active counts. Free.\n\nCredits: 0"
      }
    },
    {
      "name": "List audience segments",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/deals/segments",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "deals",
            "segments"
          ],
          "query": [],
          "variable": []
        },
        "description": "Who a campaign is for — students, parents, travellers, people spending abroad, car owners, home makers, fashion and tech shoppers, online shoppers, diners, grocery shoppers, culture, health & sport, pet owners, football fans, bill payers, mobile/QR payers, new card applicants — in English and Turkish, with active counts. Free.\n\nCredits: 0"
      }
    }
  ]
}