{
  "info": {
    "_postman_id": "a25661f1-f20a-4b2d-be2d-94d9faf415d8",
    "name": "Polar API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Polar API (Merchant of Record) - curated API Evangelist collection."
  },
  "item": [
    {
      "id": "090e784e-bb61-4b1e-b682-ccd12ceb55d1",
      "name": "products",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Products",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/products",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "products"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Products"
          }
        },
        {
          "name": "Create Product",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/products",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "products"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Product",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Product",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/products/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "products",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Product"
          }
        },
        {
          "name": "Update Product",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/products/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "products",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Update Product",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Update Product Benefits",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/products/:id/benefits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "products",
                ":id",
                "benefits"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Update Product Benefits",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "id": "727768a6-eaf1-4754-83b3-dd5caa3ae550",
      "name": "checkouts",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Checkout Sessions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/checkouts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "checkouts"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Checkout Sessions"
          }
        },
        {
          "name": "Create Checkout Session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/checkouts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "checkouts"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Checkout Session",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Checkout Session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/checkouts/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "checkouts",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Checkout Session"
          }
        },
        {
          "name": "List Checkout Links",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/checkout-links",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "checkout-links"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Checkout Links"
          }
        },
        {
          "name": "Create Checkout Link",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/checkout-links",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "checkout-links"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Checkout Link",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "id": "7bffca01-7b57-479c-8dc1-795c39827552",
      "name": "customers",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Customers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/customers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Customers"
          }
        },
        {
          "name": "Create Customer",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Customer",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Customer",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/customers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Customer"
          }
        },
        {
          "name": "Delete Customer",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/customers/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Delete Customer"
          }
        },
        {
          "name": "Get Customer State",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/customers/:id/state",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customers",
                ":id",
                "state"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Customer State"
          }
        }
      ]
    },
    {
      "id": "ad92a034-5fb7-4f4c-844c-7cc952943bcc",
      "name": "subscriptions",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Subscriptions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "subscriptions"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Subscriptions"
          }
        },
        {
          "name": "Get Subscription",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/subscriptions/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "subscriptions",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Subscription"
          }
        },
        {
          "name": "Update Subscription",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/subscriptions/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "subscriptions",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Update Subscription",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Revoke Subscription",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/subscriptions/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "subscriptions",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Revoke Subscription"
          }
        }
      ]
    },
    {
      "id": "672fe6a9-639a-4e61-86fb-ed770e5978dc",
      "name": "orders",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/orders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Orders"
          }
        },
        {
          "name": "Get Order",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/orders/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Order"
          }
        },
        {
          "name": "Get Order Invoice",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/orders/:id/invoice",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "orders",
                ":id",
                "invoice"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Order Invoice"
          }
        }
      ]
    },
    {
      "id": "7c24b0c6-c1fa-4539-bd24-1f0b293aad36",
      "name": "benefits",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Benefits",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/benefits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "benefits"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Benefits"
          }
        },
        {
          "name": "Create Benefit",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/benefits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "benefits"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Benefit",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Benefit",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/benefits/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "benefits",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Benefit"
          }
        }
      ]
    },
    {
      "id": "8c090fd5-5b96-4952-bf09-9001ce1353a8",
      "name": "license_keys",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List License Keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/license-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "license-keys"
              ],
              "query": [],
              "variable": []
            },
            "description": "List License Keys"
          }
        },
        {
          "name": "Get License Key",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/license-keys/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "license-keys",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get License Key"
          }
        },
        {
          "name": "Validate License Key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/license-keys/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "license-keys",
                "validate"
              ],
              "query": [],
              "variable": []
            },
            "description": "Validate License Key",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Activate License Key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/license-keys/activate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "license-keys",
                "activate"
              ],
              "query": [],
              "variable": []
            },
            "description": "Activate License Key",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "id": "e17c94d4-2ed9-482c-8f70-ab175828c9b8",
      "name": "meters",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Meters",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/meters",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "meters"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Meters"
          }
        },
        {
          "name": "Create Meter",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/meters",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "meters"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Meter",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Meter",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/meters/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "meters",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Meter"
          }
        }
      ]
    },
    {
      "id": "8ca67af1-e956-4ea4-aecf-b22db077dea5",
      "name": "events",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Events",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Events"
          }
        },
        {
          "name": "Ingest Events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/events/ingest",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events",
                "ingest"
              ],
              "query": [],
              "variable": []
            },
            "description": "Ingest Events",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "id": "3889ace0-49a9-4231-a90d-f61da639a4bc",
      "name": "webhooks",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "List Webhook Endpoints",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "endpoints"
              ],
              "query": [],
              "variable": []
            },
            "description": "List Webhook Endpoints"
          }
        },
        {
          "name": "Create Webhook Endpoint",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/endpoints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "endpoints"
              ],
              "query": [],
              "variable": []
            },
            "description": "Create Webhook Endpoint",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get Webhook Endpoint",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "endpoints",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Get Webhook Endpoint"
          }
        },
        {
          "name": "Delete Webhook Endpoint",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/endpoints/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "endpoints",
                ":id"
              ],
              "query": [],
              "variable": [
                {
                  "key": "id",
                  "value": ""
                }
              ]
            },
            "description": "Delete Webhook Endpoint"
          }
        }
      ]
    },
    {
      "id": "b505c904-4c71-4c0f-a2c8-baff9f9b7970",
      "name": "customer_portal",
      "description": {
        "content": "",
        "type": "text/plain"
      },
      "item": [
        {
          "name": "Validate License Key (Customer Portal)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/customer-portal/license-keys/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "customer-portal",
                "license-keys",
                "validate"
              ],
              "query": [],
              "variable": []
            },
            "description": "Validate License Key (Customer Portal)",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.polar.sh/v1",
      "type": "string"
    },
    {
      "key": "bearerToken",
      "value": "",
      "type": "string"
    }
  ]
}