{
  "info": {
    "name": "Peptide-Pay API v1",
    "description": "Public REST API for Peptide-Pay. Bearer auth via sk_live_ keys. Webhook signatures via x-peptidepay-signature header (t=ts,v1=hex SHA-256). See https://www.peptide-pay.com/docs for full reference.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      { "key": "token", "value": "{{API_KEY}}", "type": "string" }
    ]
  },
  "variable": [
    { "key": "BASE_URL", "value": "https://www.peptide-pay.com" },
    { "key": "API_KEY",  "value": "sk_live_xxx" }
  ],
  "item": [
    {
      "name": "Create checkout session",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "Idempotency-Key", "value": "{{$guid}}" }
        ],
        "url": { "raw": "{{BASE_URL}}/api/v1/checkout/init", "host": ["{{BASE_URL}}"], "path": ["api","v1","checkout","init"] },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount_cents\": 5000,\n  \"currency\": \"EUR\",\n  \"customer_email\": \"buyer@example.com\",\n  \"metadata\": { \"order_id\": \"ord_123\" },\n  \"success_url\": \"https://yourstore.com/order/ord_123\",\n  \"cancel_url\": \"https://yourstore.com/cart\"\n}"
        },
        "description": "Creates a payment session and returns the hosted checkout URL the customer must be redirected to."
      }
    },
    {
      "name": "Get session status",
      "request": {
        "method": "GET",
        "url": { "raw": "{{BASE_URL}}/api/v1/sessions/:id", "host": ["{{BASE_URL}}"], "path": ["api","v1","sessions",":id"], "variable": [{ "key": "id", "value": "cs_xxx" }] },
        "description": "Polls a session. Status transitions: pending → paid (or expired/failed)."
      }
    },
    {
      "name": "List active providers",
      "request": {
        "method": "GET",
        "url": { "raw": "{{BASE_URL}}/api/v1/providers", "host": ["{{BASE_URL}}"], "path": ["api","v1","providers"] },
        "description": "Lists which on-ramp providers are currently online."
      }
    },
    {
      "name": "Health check",
      "request": {
        "method": "GET",
        "url": { "raw": "{{BASE_URL}}/api/v1/health", "host": ["{{BASE_URL}}"], "path": ["api","v1","health"] }
      }
    }
  ]
}
