[
  {
    "request": "POST /v1/payments",
    "request_body": {
      "amount": 125.50,
      "currency": "cad",
      "capture_method": "manual",
      "payment_method": { "type": "card", "token": "tok_visa_3ds" },
      "customer": { "email": "buyer@example.com" },
      "split": [
        { "account_id": "acct_seller_01", "amount": 100.00 },
        { "account_id": "acct_seller_02", "amount": 25.50 }
      ]
    },
    "status_code": 201,
    "response_headers": { "Northline-Request-Id": "req_8f2a1c9d7b3e4f60" },
    "response_body": {
      "id": "pay_7Kq2mN9pX4rT1vW8",
      "object": "payment",
      "status": "requires_action",
      "amount": 125.50,
      "currency": "cad",
      "capture_method": "manual",
      "payment_method": {
        "type": "card",
        "card": { "brand": "visa", "last4": "4242", "exp_month": 12, "exp_year": 2028 }
      },
      "customer": { "email": "buyer@example.com" },
      "next_action": {
        "type": "redirect_to_url",
        "redirect_url": "https://checkout.sandbox.northlinepay.example/3ds/pay_7Kq2mN9pX4rT1vW8"
      },
      "split": [
        { "account_id": "acct_seller_01", "amount": 100.00 },
        { "account_id": "acct_seller_02", "amount": 25.50 }
      ],
      "created_at": "2026-09-08T14:02:11Z"
    }
  },
  {
    "request": "GET /v1/payments/pay_3Hd8sL2kQ9wE6rY5",
    "status_code": 200,
    "response_headers": { "Northline-Request-Id": "req_2c7e9a4b1d8f3e05" },
    "response_body": {
      "id": "pay_3Hd8sL2kQ9wE6rY5",
      "object": "payment",
      "status": "captured",
      "amount": 12550,
      "currency": "CAD",
      "amount_captured": 12550,
      "amount_refunded": 0,
      "capture_method": "automatic",
      "payment_method": {
        "type": "card",
        "card": { "brand": "mastercard", "last4": "4444", "exp_month": 3, "exp_year": 2029 }
      },
      "customer": { "email": "buyer2@example.com" },
      "metadata": { "order_id": "ord_1001" },
      "created_at": "2026-09-08T14:10:42Z",
      "captured_at": "2026-09-08T14:10:44Z"
    }
  },
  {
    "request": "POST /v1/refunds",
    "request_body": { "payment_id": "pay_3Hd8sL2kQ9wE6rY5", "amount": 20000, "reason": "requested_by_customer" },
    "status_code": 400,
    "response_headers": { "Northline-Request-Id": "req_9b1d4f7a2e6c8a31" },
    "response_body": {
      "type": "invalid_request_error",
      "code": "invalid_request",
      "message": "Refund amount exceeds the remaining refundable amount (12550).",
      "param": "amount"
    }
  },
  {
    "request": "GET /v1/payments?limit=100&status=captured",
    "status_code": 200,
    "response_headers": { "Northline-Request-Id": "req_4e8c2a6f9d1b7c53" },
    "response_body": {
      "object": "list",
      "data": [
        { "id": "pay_3Hd8sL2kQ9wE6rY5", "object": "payment", "status": "captured", "amount": 12550, "currency": "CAD", "created_at": "2026-09-08T14:10:42Z" },
        { "id": "pay_9Ws4tG7hJ2mL5nP1", "object": "payment", "status": "captured", "amount": 4999, "currency": "EUR", "created_at": "2026-09-08T13:58:03Z" },
        { "id": "pay_[... 98 more items omitted ...]" }
      ],
      "has_more": true
    }
  }
]
