{
  "version": "1",
  "name": "Apt Commerce API v1",
  "type": "collection",
  "items": [
    {
      "name": "Transactions",
      "type": "folder",
      "items": [
        {
          "name": "Create Transaction",
          "type": "http",
          "seq": 1,
          "request": {
            "method": "POST",
            "url": "https://api.aptcommerce.com/v1/transactions",
            "headers": [
              { "name": "Content-Type", "value": "application/json" },
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" },
              { "name": "Idempotency-Key", "value": "{{$uuid}}" }
            ],
            "body": {
              "mode": "json",
              "json": "{\n  \"amount\": 9900,\n  \"currency\": \"usd\",\n  \"payment_method\": \"card\",\n  \"customer\": \"cust_abc123\",\n  \"description\": \"Premium Plan\"\n}"
            }
          }
        },
        {
          "name": "List Transactions",
          "type": "http",
          "seq": 2,
          "request": {
            "method": "GET",
            "url": "https://api.aptcommerce.com/v1/transactions?limit=25",
            "headers": [
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ]
          }
        },
        {
          "name": "Get Transaction",
          "type": "http",
          "seq": 3,
          "request": {
            "method": "GET",
            "url": "https://api.aptcommerce.com/v1/transactions/txn_abc123",
            "headers": [
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ]
          }
        },
        {
          "name": "Refund Transaction",
          "type": "http",
          "seq": 4,
          "request": {
            "method": "POST",
            "url": "https://api.aptcommerce.com/v1/transactions/txn_abc123/refund",
            "headers": [
              { "name": "Content-Type", "value": "application/json" },
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ],
            "body": {
              "mode": "json",
              "json": "{\n  \"amount\": 2500\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Customers",
      "type": "folder",
      "items": [
        {
          "name": "Create Customer",
          "type": "http",
          "seq": 1,
          "request": {
            "method": "POST",
            "url": "https://api.aptcommerce.com/v1/customers",
            "headers": [
              { "name": "Content-Type", "value": "application/json" },
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ],
            "body": {
              "mode": "json",
              "json": "{\n  \"name\": \"Jane Smith\",\n  \"email\": \"jane@example.com\"\n}"
            }
          }
        },
        {
          "name": "List Customers",
          "type": "http",
          "seq": 2,
          "request": {
            "method": "GET",
            "url": "https://api.aptcommerce.com/v1/customers",
            "headers": [
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ]
          }
        }
      ]
    },
    {
      "name": "Invoices",
      "type": "folder",
      "items": [
        {
          "name": "Create Invoice",
          "type": "http",
          "seq": 1,
          "request": {
            "method": "POST",
            "url": "https://api.aptcommerce.com/v1/invoices",
            "headers": [
              { "name": "Content-Type", "value": "application/json" },
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ],
            "body": {
              "mode": "json",
              "json": "{\n  \"customer\": \"cust_abc123\",\n  \"amount\": 15000,\n  \"currency\": \"usd\",\n  \"due_date\": \"2026-04-14\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Payment Links",
      "type": "folder",
      "items": [
        {
          "name": "Create Payment Link",
          "type": "http",
          "seq": 1,
          "request": {
            "method": "POST",
            "url": "https://api.aptcommerce.com/v1/payment-links",
            "headers": [
              { "name": "Content-Type", "value": "application/json" },
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ],
            "body": {
              "mode": "json",
              "json": "{\n  \"amount\": 5000,\n  \"currency\": \"usd\",\n  \"description\": \"Consulting Fee\"\n}"
            }
          }
        }
      ]
    },
    {
      "name": "Subscriptions",
      "type": "folder",
      "items": [
        {
          "name": "Create Subscription",
          "type": "http",
          "seq": 1,
          "request": {
            "method": "POST",
            "url": "https://api.aptcommerce.com/v1/subscriptions",
            "headers": [
              { "name": "Content-Type", "value": "application/json" },
              { "name": "Accept", "value": "application/json" },
              { "name": "Authorization", "value": "Bearer sk_test_your_key_here" }
            ],
            "body": {
              "mode": "json",
              "json": "{\n  \"customer\": \"cust_abc123\",\n  \"amount\": 2900,\n  \"currency\": \"usd\",\n  \"interval\": \"monthly\"\n}"
            }
          }
        }
      ]
    }
  ]
}
