{
  "info": {
    "name": "Railbed API",
    "description": "Every endpoint of the Railbed API (https://railbed.com/docs/api/), generated from its OpenAPI document (https://railbed.com/docs/api/openapi.json).\n\nSet `secret_key` to a Test secret key (`rb_test_…`) from Developers (https://app.railbed.io/developers), in a Postman environment or vault rather than the collection, so it isn't shared with it. Test keys move no money.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {"type": "bearer", "bearer": [{"key": "token", "value": "{{secret_key}}", "type": "string"}]},
  "variable": [
    {"key": "base_url", "value": "https://pay.railbed.io/v1", "type": "string"},
    {
      "key": "secret_key",
      "value": "",
      "type": "string",
      "description": "Your secret key. Leave it empty here and set it in an environment."
    }
  ],
  "item": [
    {
      "name": "Checkout sessions",
      "item": [
        {
          "name": "Create a checkout session",
          "request": {
            "method": "POST",
            "header": [
              {"key": "Content-Type", "value": "application/json"},
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "A value unique to the order attempt, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the original session (`200`); the same key with a different body is `409 idempotency_conflict`."
              }
            ],
            "url": {
              "raw": "{{base_url}}/checkout_sessions",
              "host": ["{{base_url}}"],
              "path": ["checkout_sessions"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"success_url\": \"https://yourstore.com/thanks?order={REFERENCE}&payment={PAYMENT_ID}\",\n  \"cancel_url\": \"https://yourstore.com/cart\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Creates one attempt at paying, with a hosted page to send the buyer to. Send an `Idempotency-Key` so a retried request never makes a second payment. Live mode needs a payout wallet that can take payments.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/checkout-sessions/#create-a-checkout-session"
          },
          "response": [
            {
              "name": "Create a checkout session",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {"key": "Content-Type", "value": "application/json"},
                  {
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}",
                    "description": "A value unique to the order attempt, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the original session (`200`); the same key with a different body is `409 idempotency_conflict`."
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/checkout_sessions",
                  "host": ["{{base_url}}"],
                  "path": ["checkout_sessions"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"success_url\": \"https://yourstore.com/thanks?order={REFERENCE}&payment={PAYMENT_ID}\",\n  \"cancel_url\": \"https://yourstore.com/cart\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"object\": \"checkout_session\",\n  \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"status\": \"open\",\n  \"livemode\": false,\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"created\": 1790380525,\n  \"expires_at\": 1790466925,\n  \"started_at\": null,\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n  \"collect\": null,\n  \"canceled_at\": null,\n  \"checkout_id\": null,\n  \"plan_label\": null\n}"
            }
          ]
        },
        {
          "name": "Retrieve a checkout session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/checkout_sessions/:id",
              "host": ["{{base_url}}"],
              "path": ["checkout_sessions", ":id"],
              "variable": [
                {
                  "key": "id",
                  "value": "pay_7AAiYH0Ykt11ED4hmfiN",
                  "description": "The checkout session's id."
                }
              ]
            },
            "description": "Returns a session by its id. For its settlement, retrieve the payment with the same id.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/checkout-sessions/#retrieve-a-checkout-session"
          },
          "response": [
            {
              "name": "Retrieve a checkout session",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/checkout_sessions/:id",
                  "host": ["{{base_url}}"],
                  "path": ["checkout_sessions", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "pay_7AAiYH0Ykt11ED4hmfiN",
                      "description": "The checkout session's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"object\": \"checkout_session\",\n  \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"status\": \"open\",\n  \"livemode\": false,\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"created\": 1790380525,\n  \"expires_at\": 1790466925,\n  \"started_at\": null,\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n  \"collect\": null,\n  \"canceled_at\": null,\n  \"checkout_id\": null,\n  \"plan_label\": null\n}"
            }
          ]
        },
        {
          "name": "Start a checkout session",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/checkout_sessions/:id/start",
              "host": ["{{base_url}}"],
              "path": ["checkout_sessions", ":id", "start"],
              "variable": [
                {
                  "key": "id",
                  "value": "pay_7AAiYH0Ykt11ED4hmfiN",
                  "description": "The checkout session's id."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"country\": \"US\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "For your own checkout: starts the session as the buyer would on the hosted page, and returns the card providers that can take it, each with a `handoff_url` to open in the buyer's browser. Starting again is safe.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/checkout-sessions/#start-a-checkout-session"
          },
          "response": [
            {
              "name": "Start a checkout session",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/checkout_sessions/:id/start",
                  "host": ["{{base_url}}"],
                  "path": ["checkout_sessions", ":id", "start"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "pay_7AAiYH0Ykt11ED4hmfiN",
                      "description": "The checkout session's id."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"country\": \"US\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"object\": \"checkout_session\",\n  \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"status\": \"open\",\n  \"livemode\": false,\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"created\": 1790380525,\n  \"expires_at\": 1790466925,\n  \"started_at\": 1790380611,\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n  \"collect\": null,\n  \"canceled_at\": null,\n  \"checkout_id\": null,\n  \"plan_label\": null,\n  \"country\": \"US\",\n  \"providers\": [\n    {\n      \"id\": \"stripe\",\n      \"name\": \"Stripe\",\n      \"note\": \"Card, Apple Pay or Google Pay\",\n      \"recommended\": true,\n      \"handoff_url\": \"https://pay.railbed.io/go/pay_7AAiYH0Ykt11ED4hmfiN?provider=stripe\"\n    },\n    {\n      \"id\": \"coindisco\",\n      \"name\": \"Coindisco\",\n      \"note\": \"Card, through Coindisco\",\n      \"recommended\": false,\n      \"handoff_url\": \"https://pay.railbed.io/go/pay_7AAiYH0Ykt11ED4hmfiN?provider=coindisco\"\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Cancel a checkout session",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/checkout_sessions/:id/cancel",
              "host": ["{{base_url}}"],
              "path": ["checkout_sessions", ":id", "cancel"],
              "variable": [
                {
                  "key": "id",
                  "value": "pay_7AAiYH0Ykt11ED4hmfiN",
                  "description": "The checkout session's id."
                }
              ]
            },
            "description": "Closes a session nobody has started paying, so its page and its `handoff_url` links can't be used any more. No body is needed, and canceling again returns the same session. Money already on its way can still settle a canceled session: keep honoring a late `paid`.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/checkout-sessions/#cancel-a-checkout-session"
          },
          "response": [
            {
              "name": "Cancel a checkout session",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/checkout_sessions/:id/cancel",
                  "host": ["{{base_url}}"],
                  "path": ["checkout_sessions", ":id", "cancel"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "pay_7AAiYH0Ykt11ED4hmfiN",
                      "description": "The checkout session's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"object\": \"checkout_session\",\n  \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"status\": \"expired\",\n  \"livemode\": false,\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"created\": 1790380525,\n  \"expires_at\": 1790466925,\n  \"started_at\": null,\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n  \"collect\": null,\n  \"canceled_at\": 1790380711,\n  \"checkout_id\": null,\n  \"plan_label\": null\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Payments",
      "item": [
        {
          "name": "List payments",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payments",
              "host": ["{{base_url}}"],
              "path": ["payments"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a payment id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {"key": "status", "value": "", "description": "Only this status.", "disabled": true},
                {
                  "key": "reference",
                  "value": "",
                  "description": "Only this `reference`, up to 120 characters.",
                  "disabled": true
                },
                {
                  "key": "invoice_id",
                  "value": "in_Vn3qT8kR5xWm2LcZp7Hb",
                  "description": "Only payments toward this invoice, `in_…`: each part payment of an invoice paid in parts is its own payment.",
                  "disabled": true
                },
                {
                  "key": "created_gte",
                  "value": "",
                  "description": "Created at or after this time, in Unix seconds.",
                  "disabled": true
                },
                {
                  "key": "created_lte",
                  "value": "",
                  "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                  "disabled": true
                }
              ]
            },
            "description": "Returns payments newest first. Filters combine.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/payments/#list-payments"
          },
          "response": [
            {
              "name": "List payments",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payments",
                  "host": ["{{base_url}}"],
                  "path": ["payments"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: a payment id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    },
                    {"key": "status", "value": "", "description": "Only this status.", "disabled": true},
                    {
                      "key": "reference",
                      "value": "",
                      "description": "Only this `reference`, up to 120 characters.",
                      "disabled": true
                    },
                    {
                      "key": "invoice_id",
                      "value": "in_Vn3qT8kR5xWm2LcZp7Hb",
                      "description": "Only payments toward this invoice, `in_…`: each part payment of an invoice paid in parts is its own payment.",
                      "disabled": true
                    },
                    {
                      "key": "created_gte",
                      "value": "",
                      "description": "Created at or after this time, in Unix seconds.",
                      "disabled": true
                    },
                    {
                      "key": "created_lte",
                      "value": "",
                      "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n      \"object\": \"payment\",\n      \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n      \"status\": \"paid\",\n      \"livemode\": false,\n      \"amount\": \"49.00\",\n      \"currency\": \"USD\",\n      \"description\": \"Pro Membership\",\n      \"reference\": \"order_1042\",\n      \"customer_email\": \"buyer@example.com\",\n      \"created\": 1790380525,\n      \"expires_at\": 1790466925,\n      \"started_at\": 1790380611,\n      \"metadata\": {\n        \"user_id\": \"player_1042\"\n      },\n      \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n      \"collect\": null,\n      \"canceled_at\": null,\n      \"checkout_id\": null,\n      \"plan_label\": null,\n      \"paid_at\": 1790381342,\n      \"provider\": \"stripe\",\n      \"hold_reason\": null,\n      \"hold_acceptable\": false,\n      \"method\": \"card\",\n      \"settlement\": {\n        \"network\": null,\n        \"coin\": \"polygon_usdc\",\n        \"value_coin\": \"47.53\",\n        \"merchant_received\": \"44.915850\",\n        \"merchant_received_usd\": \"44.915850\",\n        \"txid_in\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n        \"txid_out\": \"0x2222222222222222222222222222222222222222222222222222222222222222\",\n        \"payout_wallet\": \"0x3333333333333333333333333333333333333333\"\n      },\n      \"invoice_id\": null,\n      \"tip\": \"0.00\"\n    },\n    {\n      \"id\": \"pay_Kx81mQv2PzR0dT7eWcYa\",\n      \"object\": \"payment\",\n      \"url\": \"https://pay.railbed.io/p/pay_Kx81mQv2PzR0dT7eWcYa\",\n      \"status\": \"held\",\n      \"livemode\": false,\n      \"amount\": \"49.00\",\n      \"currency\": \"USD\",\n      \"description\": \"Pro Membership\",\n      \"reference\": \"order_1042\",\n      \"customer_email\": \"buyer@example.com\",\n      \"created\": 1790380465,\n      \"expires_at\": 1790466865,\n      \"started_at\": 1790380611,\n      \"metadata\": {\n        \"user_id\": \"player_1042\"\n      },\n      \"order_id\": \"ord_Rx2Np5VqT9sW4mLb7ZaC\",\n      \"collect\": null,\n      \"canceled_at\": null,\n      \"checkout_id\": null,\n      \"plan_label\": null,\n      \"paid_at\": null,\n      \"provider\": \"stripe\",\n      \"hold_reason\": \"The provider sent 24.50 USDC, below 85% of the order’s 49.00 USD value.\",\n      \"hold_acceptable\": true,\n      \"method\": \"card\",\n      \"settlement\": {\n        \"network\": null,\n        \"coin\": \"polygon_usdc\",\n        \"value_coin\": \"24.50\",\n        \"merchant_received\": \"23.152500\",\n        \"merchant_received_usd\": \"23.152500\",\n        \"txid_in\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n        \"txid_out\": \"0x2222222222222222222222222222222222222222222222222222222222222222\",\n        \"payout_wallet\": \"0x3333333333333333333333333333333333333333\"\n      },\n      \"invoice_id\": null,\n      \"tip\": \"0.00\"\n    }\n  ],\n  \"has_more\": true,\n  \"next_cursor\": \"pay_Kx81mQv2PzR0dT7eWcYa\"\n}"
            }
          ]
        },
        {
          "name": "Retrieve a payment",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payments/:id",
              "host": ["{{base_url}}"],
              "path": ["payments", ":id"],
              "variable": [
                {"key": "id", "value": "pay_7AAiYH0Ykt11ED4hmfiN", "description": "The payment's id."}
              ]
            },
            "description": "Returns a payment by its id, the same as its session's. Fulfil only when `status` is `paid`.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/payments/#retrieve-a-payment"
          },
          "response": [
            {
              "name": "Retrieve a payment",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payments/:id",
                  "host": ["{{base_url}}"],
                  "path": ["payments", ":id"],
                  "variable": [
                    {"key": "id", "value": "pay_7AAiYH0Ykt11ED4hmfiN", "description": "The payment's id."}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"object\": \"payment\",\n  \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"status\": \"paid\",\n  \"livemode\": false,\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"created\": 1790380525,\n  \"expires_at\": 1790466925,\n  \"started_at\": 1790380611,\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n  \"collect\": null,\n  \"canceled_at\": null,\n  \"checkout_id\": null,\n  \"plan_label\": null,\n  \"paid_at\": 1790381342,\n  \"provider\": \"stripe\",\n  \"hold_reason\": null,\n  \"hold_acceptable\": false,\n  \"method\": \"card\",\n  \"settlement\": {\n    \"network\": null,\n    \"coin\": \"polygon_usdc\",\n    \"value_coin\": \"47.53\",\n    \"merchant_received\": \"44.915850\",\n    \"merchant_received_usd\": \"44.915850\",\n    \"txid_in\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n    \"txid_out\": \"0x2222222222222222222222222222222222222222222222222222222222222222\",\n    \"payout_wallet\": \"0x3333333333333333333333333333333333333333\"\n  },\n  \"invoice_id\": null,\n  \"tip\": \"0.00\"\n}"
            }
          ]
        },
        {
          "name": "Simulate a payment",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/payments/:id/simulate",
              "host": ["{{base_url}}"],
              "path": ["payments", ":id", "simulate"],
              "variable": [
                {"key": "id", "value": "pay_7AAiYH0Ykt11ED4hmfiN", "description": "The payment's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"outcome\": \"paid\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Test mode only: plays out a provider's answer on a started Test payment. `paid` and `underpaid` run the same settlement checks as real money. No money moves.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/payments/#simulate-a-payment"
          },
          "response": [
            {
              "name": "Simulate a payment",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/payments/:id/simulate",
                  "host": ["{{base_url}}"],
                  "path": ["payments", ":id", "simulate"],
                  "variable": [
                    {"key": "id", "value": "pay_7AAiYH0Ykt11ED4hmfiN", "description": "The payment's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"outcome\": \"paid\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"object\": \"payment\",\n  \"url\": \"https://pay.railbed.io/p/pay_7AAiYH0Ykt11ED4hmfiN\",\n  \"status\": \"paid\",\n  \"livemode\": false,\n  \"amount\": \"49.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Pro Membership\",\n  \"reference\": \"order_1042\",\n  \"customer_email\": \"buyer@example.com\",\n  \"created\": 1790380525,\n  \"expires_at\": 1790466925,\n  \"started_at\": 1790380611,\n  \"metadata\": {\n    \"user_id\": \"player_1042\"\n  },\n  \"order_id\": \"ord_M4tQx8ZkP1vRn6WcLs2B\",\n  \"collect\": null,\n  \"canceled_at\": null,\n  \"checkout_id\": null,\n  \"plan_label\": null,\n  \"paid_at\": 1790381342,\n  \"provider\": \"stripe\",\n  \"hold_reason\": null,\n  \"hold_acceptable\": false,\n  \"method\": \"card\",\n  \"settlement\": {\n    \"network\": null,\n    \"coin\": \"polygon_usdc\",\n    \"value_coin\": \"47.53\",\n    \"merchant_received\": \"44.915850\",\n    \"merchant_received_usd\": \"44.915850\",\n    \"txid_in\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n    \"txid_out\": \"0x2222222222222222222222222222222222222222222222222222222222222222\",\n    \"payout_wallet\": \"0x3333333333333333333333333333333333333333\"\n  },\n  \"invoice_id\": null,\n  \"tip\": \"0.00\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Payment methods",
      "item": [
        {
          "name": "List payment methods",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payment_methods",
              "host": ["{{base_url}}"],
              "path": ["payment_methods"],
              "query": [
                {
                  "key": "amount",
                  "value": "",
                  "description": "An amount, to see what Smart Routing would offer for it.",
                  "disabled": true
                },
                {
                  "key": "currency",
                  "value": "",
                  "description": "With `amount`. Default `USD`.",
                  "disabled": true
                },
                {
                  "key": "country",
                  "value": "",
                  "description": "With `amount`: the buyer's two-letter country code.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns the card providers, which you turned off, and, with `amount`, what Smart Routing would offer a buyer for it today, why each other provider is ruled out, and why nothing is offered when nothing is.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/payment-methods/#list-payment-methods"
          },
          "response": [
            {
              "name": "List payment methods",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payment_methods",
                  "host": ["{{base_url}}"],
                  "path": ["payment_methods"],
                  "query": [
                    {
                      "key": "amount",
                      "value": "",
                      "description": "An amount, to see what Smart Routing would offer for it.",
                      "disabled": true
                    },
                    {
                      "key": "currency",
                      "value": "",
                      "description": "With `amount`. Default `USD`.",
                      "disabled": true
                    },
                    {
                      "key": "country",
                      "value": "",
                      "description": "With `amount`: the buyer's two-letter country code.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"object\": \"list\",\n  \"data\": [\n    {\n      \"id\": \"stripe\",\n      \"name\": \"Stripe\",\n      \"note\": \"Card, Apple Pay or Google Pay\",\n      \"status\": \"available\",\n      \"minimum\": {\n        \"amount\": \"2.00\",\n        \"currency\": \"USD\"\n      },\n      \"regions\": [\n        \"US\"\n      ],\n      \"merchant_off\": false\n    },\n    {\n      \"id\": \"paypal\",\n      \"name\": \"PayPal\",\n      \"note\": \"PayPal balance or card\",\n      \"status\": \"available\",\n      \"minimum\": {\n        \"amount\": \"5.00\",\n        \"currency\": \"USD\"\n      },\n      \"regions\": [\n        \"US\"\n      ],\n      \"merchant_off\": true\n    },\n    {\n      \"id\": \"cashapp\",\n      \"name\": \"Cash App\",\n      \"note\": \"Cash App balance or card\",\n      \"status\": \"available\",\n      \"minimum\": {\n        \"amount\": \"2.00\",\n        \"currency\": \"USD\"\n      },\n      \"regions\": [\n        \"US\"\n      ],\n      \"merchant_off\": false\n    }\n  ]\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Payout wallets",
      "item": [
        {
          "name": "List payout wallets",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payout_wallets",
              "host": ["{{base_url}}"],
              "path": ["payout_wallets"]
            },
            "description": "Returns the account's other saved wallets, newest first, so a payment link or invoice can name one as `payout_wallet_id`. Read only: an owner saves and removes them in the dashboard, and no key or agent can. The list is the same in Test and Live mode and is never paged.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/payout-wallets/#list-payout-wallets"
          },
          "response": [
            {
              "name": "List payout wallets",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payout_wallets",
                  "host": ["{{base_url}}"],
                  "path": ["payout_wallets"]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"pw_Wh7kQ2nVx9RtZ4mLp6Cb\",\n      \"object\": \"payout_wallet\",\n      \"network\": \"evm\",\n      \"address\": \"0x7a1c4e9b2d5f8a3c6e0b1d4f7a9c2e5b8d0f3a6c\",\n      \"label\": \"Wholesale\",\n      \"usable\": true,\n      \"created\": 1790380525\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Payment links",
      "item": [
        {
          "name": "List payment links",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payment_links",
              "host": ["{{base_url}}"],
              "path": ["payment_links"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a payment link id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {"key": "status", "value": "", "description": "Only this status.", "disabled": true},
                {
                  "key": "reference",
                  "value": "",
                  "description": "Only this `reference`, up to 120 characters.",
                  "disabled": true
                },
                {
                  "key": "created_gte",
                  "value": "",
                  "description": "Created at or after this time, in Unix seconds.",
                  "disabled": true
                },
                {
                  "key": "created_lte",
                  "value": "",
                  "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                  "disabled": true
                }
              ]
            },
            "description": "Returns payment links newest first, with the same filters as payments.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/payment-links/#list-payment-links"
          },
          "response": [
            {
              "name": "List payment links",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payment_links",
                  "host": ["{{base_url}}"],
                  "path": ["payment_links"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: a payment link id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    },
                    {"key": "status", "value": "", "description": "Only this status.", "disabled": true},
                    {
                      "key": "reference",
                      "value": "",
                      "description": "Only this `reference`, up to 120 characters.",
                      "disabled": true
                    },
                    {
                      "key": "created_gte",
                      "value": "",
                      "description": "Created at or after this time, in Unix seconds.",
                      "disabled": true
                    },
                    {
                      "key": "created_lte",
                      "value": "",
                      "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n      \"object\": \"payment_link\",\n      \"url\": \"https://pay.railbed.io/p/pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n      \"tracking_url\": \"https://pay.railbed.io/t/Tq3nV8xK2mRz7LpW4cYb5sDh\",\n      \"status\": \"open\",\n      \"livemode\": false,\n      \"amount\": \"250.00\",\n      \"currency\": \"USD\",\n      \"description\": \"Consulting, September\",\n      \"reference\": \"INV-0042\",\n      \"customer_name\": \"Ada Lovelace\",\n      \"customer_email\": \"ada@example.com\",\n      \"memo\": \"Thanks for your business.\",\n      \"success_url\": null,\n      \"collect\": null,\n      \"routing\": {\n        \"choice\": \"buyer\",\n        \"provider\": null,\n        \"fallback\": true,\n        \"providers\": null\n      },\n      \"order_id\": \"ord_Hn6pW2zQ8rKt3VmXc9La\",\n      \"payout_wallet_id\": null,\n      \"created\": 1790380525,\n      \"expires_at\": 1791590125,\n      \"started_at\": null,\n      \"paid_at\": null,\n      \"canceled_at\": null,\n      \"edited_at\": null\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create a payment link",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {"raw": "{{base_url}}/payment_links", "host": ["{{base_url}}"], "path": ["payment_links"]},
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Consulting, September\",\n  \"customer_name\": \"Ada Lovelace\",\n  \"customer_email\": \"ada@example.com\",\n  \"reference\": \"INV-0042\",\n  \"memo\": \"Thanks for your business.\",\n  \"expires_in_days\": 14\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Asks one payer for one amount. The link is one payment, so its id is the payment's.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/payment-links/#create-a-payment-link"
          },
          "response": [
            {
              "name": "Create a payment link",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/payment_links",
                  "host": ["{{base_url}}"],
                  "path": ["payment_links"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Consulting, September\",\n  \"customer_name\": \"Ada Lovelace\",\n  \"customer_email\": \"ada@example.com\",\n  \"reference\": \"INV-0042\",\n  \"memo\": \"Thanks for your business.\",\n  \"expires_in_days\": 14\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"object\": \"payment_link\",\n  \"url\": \"https://pay.railbed.io/p/pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"tracking_url\": \"https://pay.railbed.io/t/Tq3nV8xK2mRz7LpW4cYb5sDh\",\n  \"status\": \"open\",\n  \"livemode\": false,\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Consulting, September\",\n  \"reference\": \"INV-0042\",\n  \"customer_name\": \"Ada Lovelace\",\n  \"customer_email\": \"ada@example.com\",\n  \"memo\": \"Thanks for your business.\",\n  \"success_url\": null,\n  \"collect\": null,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"order_id\": \"ord_Hn6pW2zQ8rKt3VmXc9La\",\n  \"payout_wallet_id\": null,\n  \"created\": 1790380525,\n  \"expires_at\": 1791590125,\n  \"started_at\": null,\n  \"paid_at\": null,\n  \"canceled_at\": null,\n  \"edited_at\": null\n}"
            }
          ]
        },
        {
          "name": "Retrieve a payment link",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payment_links/:id",
              "host": ["{{base_url}}"],
              "path": ["payment_links", ":id"],
              "variable": [
                {"key": "id", "value": "pay_Lk4mQ8vR2xTn7WcZs1Pb", "description": "The payment link's id."}
              ]
            },
            "description": "Returns a payment link by its id.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/payment-links/#retrieve-a-payment-link"
          },
          "response": [
            {
              "name": "Retrieve a payment link",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payment_links/:id",
                  "host": ["{{base_url}}"],
                  "path": ["payment_links", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "pay_Lk4mQ8vR2xTn7WcZs1Pb",
                      "description": "The payment link's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"object\": \"payment_link\",\n  \"url\": \"https://pay.railbed.io/p/pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"tracking_url\": \"https://pay.railbed.io/t/Tq3nV8xK2mRz7LpW4cYb5sDh\",\n  \"status\": \"open\",\n  \"livemode\": false,\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Consulting, September\",\n  \"reference\": \"INV-0042\",\n  \"customer_name\": \"Ada Lovelace\",\n  \"customer_email\": \"ada@example.com\",\n  \"memo\": \"Thanks for your business.\",\n  \"success_url\": null,\n  \"collect\": null,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"order_id\": \"ord_Hn6pW2zQ8rKt3VmXc9La\",\n  \"payout_wallet_id\": null,\n  \"created\": 1790380525,\n  \"expires_at\": 1791590125,\n  \"started_at\": null,\n  \"paid_at\": null,\n  \"canceled_at\": null,\n  \"edited_at\": null\n}"
            }
          ]
        },
        {
          "name": "Update a payment link",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/payment_links/:id",
              "host": ["{{base_url}}"],
              "path": ["payment_links", ":id"],
              "variable": [
                {"key": "id", "value": "pay_Lk4mQ8vR2xTn7WcZs1Pb", "description": "The payment link's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": \"275.00\",\n  \"expires_in_days\": 14,\n  \"expected_edited_at\": null\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes an open link nobody has started paying, with the same checks a new link meets for what changes. The edit is on the link's timeline as your key's or agent's. Send the `edited_at` you read as `expected_edited_at` so an edit made since answers `409 link_changed`. Once the payer has started, it's `409 link_not_editable`: cancel it and make a new one.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/payment-links/#update-a-payment-link"
          },
          "response": [
            {
              "name": "Update a payment link",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/payment_links/:id",
                  "host": ["{{base_url}}"],
                  "path": ["payment_links", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "pay_Lk4mQ8vR2xTn7WcZs1Pb",
                      "description": "The payment link's id."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"amount\": \"275.00\",\n  \"expires_in_days\": 14,\n  \"expected_edited_at\": null\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"object\": \"payment_link\",\n  \"url\": \"https://pay.railbed.io/p/pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"tracking_url\": \"https://pay.railbed.io/t/Tq3nV8xK2mRz7LpW4cYb5sDh\",\n  \"status\": \"open\",\n  \"livemode\": false,\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Consulting, September\",\n  \"reference\": \"INV-0042\",\n  \"customer_name\": \"Ada Lovelace\",\n  \"customer_email\": \"ada@example.com\",\n  \"memo\": \"Thanks for your business.\",\n  \"success_url\": null,\n  \"collect\": null,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"order_id\": \"ord_Hn6pW2zQ8rKt3VmXc9La\",\n  \"payout_wallet_id\": null,\n  \"created\": 1790380525,\n  \"expires_at\": 1791590125,\n  \"started_at\": null,\n  \"paid_at\": null,\n  \"canceled_at\": null,\n  \"edited_at\": null\n}"
            }
          ]
        },
        {
          "name": "Cancel a payment link",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/payment_links/:id/cancel",
              "host": ["{{base_url}}"],
              "path": ["payment_links", ":id", "cancel"],
              "variable": [
                {"key": "id", "value": "pay_Lk4mQ8vR2xTn7WcZs1Pb", "description": "The payment link's id."}
              ]
            },
            "description": "Closes a link nobody has started paying. No body is needed, and canceling again returns the same link.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/payment-links/#cancel-a-payment-link"
          },
          "response": [
            {
              "name": "Cancel a payment link",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/payment_links/:id/cancel",
                  "host": ["{{base_url}}"],
                  "path": ["payment_links", ":id", "cancel"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "pay_Lk4mQ8vR2xTn7WcZs1Pb",
                      "description": "The payment link's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"object\": \"payment_link\",\n  \"url\": \"https://pay.railbed.io/p/pay_Lk4mQ8vR2xTn7WcZs1Pb\",\n  \"tracking_url\": \"https://pay.railbed.io/t/Tq3nV8xK2mRz7LpW4cYb5sDh\",\n  \"status\": \"expired\",\n  \"livemode\": false,\n  \"amount\": \"250.00\",\n  \"currency\": \"USD\",\n  \"description\": \"Consulting, September\",\n  \"reference\": \"INV-0042\",\n  \"customer_name\": \"Ada Lovelace\",\n  \"customer_email\": \"ada@example.com\",\n  \"memo\": \"Thanks for your business.\",\n  \"success_url\": null,\n  \"collect\": null,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"order_id\": \"ord_Hn6pW2zQ8rKt3VmXc9La\",\n  \"payout_wallet_id\": null,\n  \"created\": 1790380525,\n  \"expires_at\": 1791590125,\n  \"started_at\": null,\n  \"paid_at\": null,\n  \"canceled_at\": 1790384125,\n  \"edited_at\": null\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Invoices",
      "item": [
        {
          "name": "List invoices",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/invoices",
              "host": ["{{base_url}}"],
              "path": ["invoices"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: an invoice id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Only invoices showing this status. `unpaid` is every issued invoice that can still be paid (sent, viewed, partially paid or overdue).",
                  "disabled": true
                },
                {
                  "key": "kind",
                  "value": "",
                  "description": "`invoice` for invoices built as invoices, `link` for payment links.",
                  "disabled": true
                },
                {
                  "key": "customer",
                  "value": "cus_Rk8mW3pZ6tQv1NxLc4Ys",
                  "description": "Only this customer's invoices.",
                  "disabled": true
                },
                {
                  "key": "owner",
                  "value": "",
                  "description": "Only invoices this person on the team owns (their `owner.id`), or `none` for invoices nobody owns.",
                  "disabled": true
                },
                {
                  "key": "subscription",
                  "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                  "description": "Only the invoices this subscription issued, one per period. Anything but a subscription id is `400 invalid_subscription`.",
                  "disabled": true
                },
                {
                  "key": "reference",
                  "value": "",
                  "description": "Only this `reference`, up to 120 characters.",
                  "disabled": true
                },
                {
                  "key": "created_gte",
                  "value": "",
                  "description": "Created at or after this time, in Unix seconds.",
                  "disabled": true
                },
                {
                  "key": "created_lte",
                  "value": "",
                  "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                  "disabled": true
                },
                {
                  "key": "due_date_gte",
                  "value": "",
                  "description": "Due on or after this date. An invoice with no due date never matches.",
                  "disabled": true
                },
                {
                  "key": "due_date_lte",
                  "value": "",
                  "description": "Due on or before this date. Not before `due_date_gte` (`400 invalid_dates`).",
                  "disabled": true
                }
              ]
            },
            "description": "Returns invoices newest first, payment links among them (`kind: \"link\"`), in the credential's mode.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/invoices/#list-invoices"
          },
          "response": [
            {
              "name": "List invoices",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/invoices",
                  "host": ["{{base_url}}"],
                  "path": ["invoices"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: an invoice id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only invoices showing this status. `unpaid` is every issued invoice that can still be paid (sent, viewed, partially paid or overdue).",
                      "disabled": true
                    },
                    {
                      "key": "kind",
                      "value": "",
                      "description": "`invoice` for invoices built as invoices, `link` for payment links.",
                      "disabled": true
                    },
                    {
                      "key": "customer",
                      "value": "cus_Rk8mW3pZ6tQv1NxLc4Ys",
                      "description": "Only this customer's invoices.",
                      "disabled": true
                    },
                    {
                      "key": "owner",
                      "value": "",
                      "description": "Only invoices this person on the team owns (their `owner.id`), or `none` for invoices nobody owns.",
                      "disabled": true
                    },
                    {
                      "key": "subscription",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "Only the invoices this subscription issued, one per period. Anything but a subscription id is `400 invalid_subscription`.",
                      "disabled": true
                    },
                    {
                      "key": "reference",
                      "value": "",
                      "description": "Only this `reference`, up to 120 characters.",
                      "disabled": true
                    },
                    {
                      "key": "created_gte",
                      "value": "",
                      "description": "Created at or after this time, in Unix seconds.",
                      "disabled": true
                    },
                    {
                      "key": "created_lte",
                      "value": "",
                      "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                      "disabled": true
                    },
                    {
                      "key": "due_date_gte",
                      "value": "",
                      "description": "Due on or after this date. An invoice with no due date never matches.",
                      "disabled": true
                    },
                    {
                      "key": "due_date_lte",
                      "value": "",
                      "description": "Due on or before this date. Not before `due_date_gte` (`400 invalid_dates`).",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n      \"object\": \"invoice\",\n      \"kind\": \"invoice\",\n      \"number\": \"INV-0042\",\n      \"status\": \"sent\",\n      \"livemode\": false,\n      \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n      \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n      \"currency\": \"USD\",\n      \"lines\": [\n        {\n          \"description\": \"Brand strategy workshop\",\n          \"quantity\": \"1\",\n          \"unit_amount\": \"3200.00\",\n          \"amount\": \"3200.00\"\n        },\n        {\n          \"description\": \"Design hours\",\n          \"quantity\": \"12.5\",\n          \"unit_amount\": \"150.00\",\n          \"amount\": \"1875.00\"\n        }\n      ],\n      \"subtotal\": \"5075.00\",\n      \"discount\": \"0.00\",\n      \"discount_percent\": null,\n      \"tax\": \"418.69\",\n      \"tax_percent\": \"8.25\",\n      \"tax_label\": \"Sales tax\",\n      \"total\": \"5493.69\",\n      \"amount_paid\": \"0.00\",\n      \"amount_due\": \"5493.69\",\n      \"tips\": \"0.00\",\n      \"customer\": {\n        \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n        \"name\": \"Ada Lovelace\",\n        \"email\": \"ada@example.com\",\n        \"company\": \"Analytical Engines Ltd\",\n        \"phone\": null,\n        \"billing_address\": null\n      },\n      \"memo\": \"Thanks for your business.\",\n      \"terms\": \"Due within 30 days. Bank details on request.\",\n      \"reference\": \"PO-1042\",\n      \"due_date\": \"2026-10-26\",\n      \"allow_partial\": true,\n      \"min_payment\": \"1000.00\",\n      \"allow_tip\": false,\n      \"reminders\": [\n        -3,\n        0,\n        3\n      ],\n      \"email_receipts\": true,\n      \"routing\": {\n        \"choice\": \"buyer\",\n        \"provider\": null,\n        \"fallback\": true,\n        \"providers\": null\n      },\n      \"collect\": null,\n      \"success_url\": null,\n      \"payout_wallet_id\": null,\n      \"payment_link_id\": null,\n      \"subscription\": null,\n      \"owner\": null,\n      \"created_via\": \"api\",\n      \"send_count\": 0,\n      \"view_count\": 0,\n      \"version\": 0,\n      \"created\": 1790380525,\n      \"updated\": 1790380525,\n      \"issued_at\": 1790380525,\n      \"last_sent_at\": null,\n      \"viewed_at\": null,\n      \"paid_at\": null,\n      \"voided_at\": null,\n      \"void_reason\": null,\n      \"expires_at\": null,\n      \"next_reminder_at\": 1792746000\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create an invoice",
          "request": {
            "method": "POST",
            "header": [
              {"key": "Content-Type", "value": "application/json"},
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "A value unique to the invoice you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first invoice (`200`); the same key with a different body is `409 idempotency_conflict`. A draft deleted since frees its key."
              }
            ],
            "url": {"raw": "{{base_url}}/invoices", "host": ["{{base_url}}"], "path": ["invoices"]},
            "body": {
              "mode": "raw",
              "raw": "{\n  \"currency\": \"USD\",\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"customer\": {\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\"\n  },\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"unit_amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\"\n    }\n  ],\n  \"tax\": {\n    \"percent\": \"8.25\",\n    \"label\": \"Sales tax\"\n  },\n  \"due_date\": \"2026-10-26\",\n  \"send\": true\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Makes an invoice in the credential's mode: a draft by default, issued with `issue: true` (its `url` can then be shared and paid, with or without a customer: one who isn't named gives their email as they pay), or issued and emailed to the customer with `send: true`, which needs the customer's name and email. Send `Idempotency-Key` so a retried request answers the first invoice instead of making a second.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#create-an-invoice"
          },
          "response": [
            {
              "name": "Create an invoice",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {"key": "Content-Type", "value": "application/json"},
                  {
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}",
                    "description": "A value unique to the invoice you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first invoice (`200`); the same key with a different body is `409 idempotency_conflict`. A draft deleted since frees its key."
                  }
                ],
                "url": {"raw": "{{base_url}}/invoices", "host": ["{{base_url}}"], "path": ["invoices"]},
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"currency\": \"USD\",\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"customer\": {\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\"\n  },\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"unit_amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\"\n    }\n  ],\n  \"tax\": {\n    \"percent\": \"8.25\",\n    \"label\": \"Sales tax\"\n  },\n  \"due_date\": \"2026-10-26\",\n  \"send\": true\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"sent\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 0,\n  \"view_count\": 0,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": null,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": null,\n  \"void_reason\": null,\n  \"expires_at\": null,\n  \"next_reminder_at\": 1792746000\n}"
            }
          ]
        },
        {
          "name": "Retrieve an invoice",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/invoices/:id",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "description": "Returns one of your invoices, or a payment link's invoice, as it is now: its status, what's paid and what's due.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/invoices/#retrieve-an-invoice"
          },
          "response": [
            {
              "name": "Retrieve an invoice",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/invoices/:id",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"sent\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 0,\n  \"view_count\": 0,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": null,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": null,\n  \"void_reason\": null,\n  \"expires_at\": null,\n  \"next_reminder_at\": 1792746000\n}"
            }
          ]
        },
        {
          "name": "Delete a draft invoice",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/invoices/:id",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "description": "Deletes a draft. An issued invoice is never deleted: void it, so its number and history stay.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#delete-a-draft-invoice"
          },
          "response": [
            {
              "name": "Delete a draft invoice",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/invoices/:id",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"deleted\": true\n}"
            }
          ]
        },
        {
          "name": "Update an invoice",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/invoices/:id",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"due_date\": \"2026-10-26\",\n  \"expected_version\": 0\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes the fields you send and leaves the rest. A draft takes any change; once a payment toward an issued invoice has started, only the due date, reminders, memo, terms, receipts and owner can change. Send the `version` you read as `expected_version`, so an edit made since answers `409 invoice_changed` instead of being overwritten.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#update-an-invoice"
          },
          "response": [
            {
              "name": "Update an invoice",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/invoices/:id",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"due_date\": \"2026-10-26\",\n  \"expected_version\": 0\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"sent\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 0,\n  \"view_count\": 0,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": null,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": null,\n  \"void_reason\": null,\n  \"expires_at\": null,\n  \"next_reminder_at\": 1792746000\n}"
            }
          ]
        },
        {
          "name": "Issue an invoice",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/invoices/:id/issue",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id", "issue"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "description": "Issues a draft without emailing it: from now on its `url` can be shared and paid. No body is needed.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#issue-an-invoice"
          },
          "response": [
            {
              "name": "Issue an invoice",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/invoices/:id/issue",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id", "issue"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"sent\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 0,\n  \"view_count\": 0,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": null,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": null,\n  \"void_reason\": null,\n  \"expires_at\": null,\n  \"next_reminder_at\": 1792746000\n}"
            }
          ]
        },
        {
          "name": "Send an invoice",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/invoices/:id/send",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id", "send"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"message\": \"Thanks again for last week. Here is the invoice for the workshop.\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Emails the invoice to its customer in your business's name, with its PDF and a Pay button, issuing a draft first. Sent again, it reads as a reminder. A Test invoice's copy goes to the person behind the key or agent instead of the customer.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#send-an-invoice"
          },
          "response": [
            {
              "name": "Send an invoice",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/invoices/:id/send",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id", "send"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"message\": \"Thanks again for last week. Here is the invoice for the workshop.\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"sent\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 1,\n  \"view_count\": 0,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": 1790380645,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": null,\n  \"void_reason\": null,\n  \"expires_at\": null,\n  \"next_reminder_at\": 1792746000,\n  \"email\": {\n    \"id\": \"iem_Hc6tN1vQ9rXk4WmZb2Lp\",\n    \"object\": \"invoice_email\",\n    \"kind\": \"invoice\",\n    \"to\": \"you@example.com\",\n    \"test_copy\": true,\n    \"status\": \"sent\",\n    \"delivery\": null,\n    \"error\": null,\n    \"created\": 1790380645,\n    \"sent_at\": 1790380645\n  }\n}"
            }
          ]
        },
        {
          "name": "Void an invoice",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/invoices/:id/void",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id", "void"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reason\": \"Replaced by INV-0043\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Voids an issued invoice: it can't be paid from now on, and payments toward it that nobody started are closed. One already on its way to a card provider stays open, and money that arrives still settles. Voiding again returns the same invoice.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#void-an-invoice"
          },
          "response": [
            {
              "name": "Void an invoice",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/invoices/:id/void",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id", "void"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reason\": \"Replaced by INV-0043\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"void\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 0,\n  \"view_count\": 0,\n  \"version\": 1,\n  \"created\": 1790380525,\n  \"updated\": 1790384125,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": null,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": 1790384125,\n  \"void_reason\": \"Replaced by INV-0043\",\n  \"expires_at\": null,\n  \"next_reminder_at\": null\n}"
            }
          ]
        },
        {
          "name": "Duplicate an invoice",
          "request": {
            "method": "POST",
            "header": [
              {"key": "Content-Type", "value": "application/json"},
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "A value unique to the invoice you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first invoice (`200`); the same key with a different body is `409 idempotency_conflict`. A draft deleted since frees its key."
              }
            ],
            "url": {
              "raw": "{{base_url}}/invoices/:id/duplicate",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id", "duplicate"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"owner_email\": \"sam@northwind.example\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Makes a new draft with the invoice's customer, lines, discount, tax, terms and payment options, and no due date. Any invoice can be copied, a payment link's or a subscription's too; the copy is an ordinary invoice of its own. Send an `Idempotency-Key` to make a retry safe.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/invoices/#duplicate-an-invoice"
          },
          "response": [
            {
              "name": "Duplicate an invoice",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {"key": "Content-Type", "value": "application/json"},
                  {
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}",
                    "description": "A value unique to the invoice you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first invoice (`200`); the same key with a different body is `409 idempotency_conflict`. A draft deleted since frees its key."
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/invoices/:id/duplicate",
                  "host": ["{{base_url}}"],
                  "path": ["invoices", ":id", "duplicate"],
                  "variable": [
                    {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"owner_email\": \"sam@northwind.example\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"in_Vn3qT8kR5xWm2LcZp7Hb\",\n  \"object\": \"invoice\",\n  \"kind\": \"invoice\",\n  \"number\": \"INV-0042\",\n  \"status\": \"sent\",\n  \"livemode\": false,\n  \"url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3\",\n  \"pdf_url\": \"https://pay.railbed.io/i/4c9e1f7a2b6d48e3a5f0c8b1d7e2a9f3/pdf\",\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Brand strategy workshop\",\n      \"quantity\": \"1\",\n      \"unit_amount\": \"3200.00\",\n      \"amount\": \"3200.00\"\n    },\n    {\n      \"description\": \"Design hours\",\n      \"quantity\": \"12.5\",\n      \"unit_amount\": \"150.00\",\n      \"amount\": \"1875.00\"\n    }\n  ],\n  \"subtotal\": \"5075.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"418.69\",\n  \"tax_percent\": \"8.25\",\n  \"tax_label\": \"Sales tax\",\n  \"total\": \"5493.69\",\n  \"amount_paid\": \"0.00\",\n  \"amount_due\": \"5493.69\",\n  \"tips\": \"0.00\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null,\n    \"billing_address\": null\n  },\n  \"memo\": \"Thanks for your business.\",\n  \"terms\": \"Due within 30 days. Bank details on request.\",\n  \"reference\": \"PO-1042\",\n  \"due_date\": \"2026-10-26\",\n  \"allow_partial\": true,\n  \"min_payment\": \"1000.00\",\n  \"allow_tip\": false,\n  \"reminders\": [\n    -3,\n    0,\n    3\n  ],\n  \"email_receipts\": true,\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"payment_link_id\": null,\n  \"subscription\": null,\n  \"owner\": null,\n  \"created_via\": \"api\",\n  \"send_count\": 0,\n  \"view_count\": 0,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525,\n  \"issued_at\": 1790380525,\n  \"last_sent_at\": null,\n  \"viewed_at\": null,\n  \"paid_at\": null,\n  \"voided_at\": null,\n  \"void_reason\": null,\n  \"expires_at\": null,\n  \"next_reminder_at\": 1792746000\n}"
            }
          ]
        },
        {
          "name": "Download an invoice PDF",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/invoices/:id/pdf",
              "host": ["{{base_url}}"],
              "path": ["invoices", ":id", "pdf"],
              "variable": [
                {"key": "id", "value": "in_Vn3qT8kR5xWm2LcZp7Hb", "description": "The invoice's id."}
              ]
            },
            "description": "The invoice as a PDF, as its customer gets it: a draft is marked Draft, and payments received are listed. Payment links' too.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/invoices/#download-an-invoice-pdf"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Subscription plans",
      "item": [
        {
          "name": "List subscription plans",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscription_plans",
              "host": ["{{base_url}}"],
              "path": ["subscription_plans"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a plan id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Only active plans (taking new subscribers) or archived ones.",
                  "disabled": true
                },
                {
                  "key": "created_gte",
                  "value": "",
                  "description": "Created at or after this time, in Unix seconds.",
                  "disabled": true
                },
                {
                  "key": "created_lte",
                  "value": "",
                  "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                  "disabled": true
                }
              ]
            },
            "description": "Returns plans newest first, in the credential's mode.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/subscription-plans/#list-subscription-plans"
          },
          "response": [
            {
              "name": "List subscription plans",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscription_plans",
                  "host": ["{{base_url}}"],
                  "path": ["subscription_plans"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: a plan id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only active plans (taking new subscribers) or archived ones.",
                      "disabled": true
                    },
                    {
                      "key": "created_gte",
                      "value": "",
                      "description": "Created at or after this time, in Unix seconds.",
                      "disabled": true
                    },
                    {
                      "key": "created_lte",
                      "value": "",
                      "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n      \"object\": \"subscription_plan\",\n      \"livemode\": false,\n      \"name\": \"Pro\",\n      \"description\": \"Everything in Starter, plus priority support.\",\n      \"features\": [\n        \"5 seats\",\n        \"Priority support\",\n        \"Monthly report\"\n      ],\n      \"currency\": \"USD\",\n      \"amount\": \"49.00\",\n      \"interval\": {\n        \"unit\": \"month\",\n        \"count\": 1\n      },\n      \"trial_days\": 0,\n      \"tax_percent\": null,\n      \"tax_label\": null,\n      \"terms\": \"Cancel any time from your subscription page.\",\n      \"billing\": {\n        \"lead_days\": 7,\n        \"terms_days\": 3,\n        \"cancel_after_days\": 14,\n        \"reminders\": [\n          -3,\n          0,\n          3,\n          7\n        ],\n        \"send_emails\": true,\n        \"email_receipts\": true,\n        \"allow_customer_cancel\": true\n      },\n      \"routing\": {\n        \"choice\": \"buyer\",\n        \"provider\": null,\n        \"fallback\": true,\n        \"providers\": null\n      },\n      \"collect\": null,\n      \"success_url\": null,\n      \"payout_wallet_id\": null,\n      \"self_serve\": true,\n      \"url\": \"https://pay.railbed.io/subscribe/5e2b9c71d04a4f68b3c8e1a7f9d2c6b0\",\n      \"status\": \"active\",\n      \"subscribers\": {\n        \"paying\": 0,\n        \"trialing\": 0,\n        \"total\": 0\n      },\n      \"mrr\": \"0.00\",\n      \"version\": 0,\n      \"created\": 1790380525,\n      \"updated\": 1790380525\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create a subscription plan",
          "request": {
            "method": "POST",
            "header": [
              {"key": "Content-Type", "value": "application/json"},
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "A value unique to the plan you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first plan (`200`); the same key with a different body is `409 idempotency_conflict`."
              }
            ],
            "url": {
              "raw": "{{base_url}}/subscription_plans",
              "host": ["{{base_url}}"],
              "path": ["subscription_plans"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Pro\",\n  \"description\": \"Everything in Starter, plus priority support.\",\n  \"features\": [\n    \"5 seats\",\n    \"Priority support\",\n    \"Monthly report\"\n  ],\n  \"currency\": \"USD\",\n  \"amount\": \"49.00\",\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"terms\": \"Cancel any time from your subscription page.\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Makes a plan in the credential's mode, with a public sign-up page at its `url`: a customer who signs up there gets a subscription and its first invoice (or a trial). Send `Idempotency-Key` so a retried request answers the first plan instead of making a second.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscription-plans/#create-a-subscription-plan"
          },
          "response": [
            {
              "name": "Create a subscription plan",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {"key": "Content-Type", "value": "application/json"},
                  {
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}",
                    "description": "A value unique to the plan you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first plan (`200`); the same key with a different body is `409 idempotency_conflict`."
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/subscription_plans",
                  "host": ["{{base_url}}"],
                  "path": ["subscription_plans"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Pro\",\n  \"description\": \"Everything in Starter, plus priority support.\",\n  \"features\": [\n    \"5 seats\",\n    \"Priority support\",\n    \"Monthly report\"\n  ],\n  \"currency\": \"USD\",\n  \"amount\": \"49.00\",\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"terms\": \"Cancel any time from your subscription page.\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n  \"object\": \"subscription_plan\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"description\": \"Everything in Starter, plus priority support.\",\n  \"features\": [\n    \"5 seats\",\n    \"Priority support\",\n    \"Monthly report\"\n  ],\n  \"currency\": \"USD\",\n  \"amount\": \"49.00\",\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"trial_days\": 0,\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"self_serve\": true,\n  \"url\": \"https://pay.railbed.io/subscribe/5e2b9c71d04a4f68b3c8e1a7f9d2c6b0\",\n  \"status\": \"active\",\n  \"subscribers\": {\n    \"paying\": 0,\n    \"trialing\": 0,\n    \"total\": 0\n  },\n  \"mrr\": \"0.00\",\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Retrieve a subscription plan",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscription_plans/:id",
              "host": ["{{base_url}}"],
              "path": ["subscription_plans", ":id"],
              "variable": [
                {"key": "id", "value": "spl_8Hq2mVx5RtLc3NwZb7Ks", "description": "The plan's id."}
              ]
            },
            "description": "Returns one of your plans, with its subscriber counts and monthly recurring revenue now.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/subscription-plans/#retrieve-a-subscription-plan"
          },
          "response": [
            {
              "name": "Retrieve a subscription plan",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscription_plans/:id",
                  "host": ["{{base_url}}"],
                  "path": ["subscription_plans", ":id"],
                  "variable": [
                    {"key": "id", "value": "spl_8Hq2mVx5RtLc3NwZb7Ks", "description": "The plan's id."}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n  \"object\": \"subscription_plan\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"description\": \"Everything in Starter, plus priority support.\",\n  \"features\": [\n    \"5 seats\",\n    \"Priority support\",\n    \"Monthly report\"\n  ],\n  \"currency\": \"USD\",\n  \"amount\": \"49.00\",\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"trial_days\": 0,\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"self_serve\": true,\n  \"url\": \"https://pay.railbed.io/subscribe/5e2b9c71d04a4f68b3c8e1a7f9d2c6b0\",\n  \"status\": \"active\",\n  \"subscribers\": {\n    \"paying\": 0,\n    \"trialing\": 0,\n    \"total\": 0\n  },\n  \"mrr\": \"0.00\",\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Update a subscription plan",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/subscription_plans/:id",
              "host": ["{{base_url}}"],
              "path": ["subscription_plans", ":id"],
              "variable": [
                {"key": "id", "value": "spl_8Hq2mVx5RtLc3NwZb7Ks", "description": "The plan's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"archived\",\n  \"expected_version\": 0\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes the fields you send and leaves the rest. A new price, interval or setting applies to new subscribers only: existing subscriptions keep what they signed up for. `status: \"archived\"` stops new sign-ups; `active` restores them. Send the `version` you read as `expected_version`, so an edit made since answers `409 plan_changed` instead of being overwritten.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscription-plans/#update-a-subscription-plan"
          },
          "response": [
            {
              "name": "Update a subscription plan",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/subscription_plans/:id",
                  "host": ["{{base_url}}"],
                  "path": ["subscription_plans", ":id"],
                  "variable": [
                    {"key": "id", "value": "spl_8Hq2mVx5RtLc3NwZb7Ks", "description": "The plan's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"archived\",\n  \"expected_version\": 0\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n  \"object\": \"subscription_plan\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"description\": \"Everything in Starter, plus priority support.\",\n  \"features\": [\n    \"5 seats\",\n    \"Priority support\",\n    \"Monthly report\"\n  ],\n  \"currency\": \"USD\",\n  \"amount\": \"49.00\",\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"trial_days\": 0,\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"routing\": {\n    \"choice\": \"buyer\",\n    \"provider\": null,\n    \"fallback\": true,\n    \"providers\": null\n  },\n  \"collect\": null,\n  \"success_url\": null,\n  \"payout_wallet_id\": null,\n  \"self_serve\": true,\n  \"url\": \"https://pay.railbed.io/subscribe/5e2b9c71d04a4f68b3c8e1a7f9d2c6b0\",\n  \"status\": \"active\",\n  \"subscribers\": {\n    \"paying\": 0,\n    \"trialing\": 0,\n    \"total\": 0\n  },\n  \"mrr\": \"0.00\",\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Subscriptions",
      "item": [
        {
          "name": "List subscriptions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscriptions",
              "host": ["{{base_url}}"],
              "path": ["subscriptions"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a subscription id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Only subscriptions showing this `status`, or `paying` (active or past due) or `open` (every one not canceled).",
                  "disabled": true
                },
                {
                  "key": "plan",
                  "value": "spl_8Hq2mVx5RtLc3NwZb7Ks",
                  "description": "Only this plan's subscribers.",
                  "disabled": true
                },
                {
                  "key": "customer",
                  "value": "cus_Rk8mW3pZ6tQv1NxLc4Ys",
                  "description": "Only this customer's subscriptions.",
                  "disabled": true
                },
                {
                  "key": "owner",
                  "value": "",
                  "description": "Only subscriptions this person on the team owns (their `owner.id`), or `none` for subscriptions nobody owns.",
                  "disabled": true
                },
                {
                  "key": "q",
                  "value": "",
                  "description": "Words in the subscription's name, the customer's name, email or company, or the reference. Up to 100 characters.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns subscriptions newest first, in the credential's mode, with the dashboard's filters.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/subscriptions/#list-subscriptions"
          },
          "response": [
            {
              "name": "List subscriptions",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscriptions",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: a subscription id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    },
                    {
                      "key": "status",
                      "value": "",
                      "description": "Only subscriptions showing this `status`, or `paying` (active or past due) or `open` (every one not canceled).",
                      "disabled": true
                    },
                    {
                      "key": "plan",
                      "value": "spl_8Hq2mVx5RtLc3NwZb7Ks",
                      "description": "Only this plan's subscribers.",
                      "disabled": true
                    },
                    {
                      "key": "customer",
                      "value": "cus_Rk8mW3pZ6tQv1NxLc4Ys",
                      "description": "Only this customer's subscriptions.",
                      "disabled": true
                    },
                    {
                      "key": "owner",
                      "value": "",
                      "description": "Only subscriptions this person on the team owns (their `owner.id`), or `none` for subscriptions nobody owns.",
                      "disabled": true
                    },
                    {
                      "key": "q",
                      "value": "",
                      "description": "Words in the subscription's name, the customer's name, email or company, or the reference. Up to 100 characters.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n      \"object\": \"subscription\",\n      \"livemode\": false,\n      \"name\": \"Pro\",\n      \"plan\": {\n        \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n        \"name\": \"Pro\"\n      },\n      \"status\": \"awaiting_payment\",\n      \"stored_status\": \"pending\",\n      \"customer\": {\n        \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n        \"name\": \"Ada Lovelace\",\n        \"email\": \"ada@example.com\",\n        \"company\": \"Analytical Engines Ltd\",\n        \"phone\": null\n      },\n      \"currency\": \"USD\",\n      \"lines\": [\n        {\n          \"description\": \"Pro\",\n          \"quantity\": \"2\",\n          \"unit_amount\": \"49.00\",\n          \"amount\": \"98.00\"\n        }\n      ],\n      \"subtotal\": \"98.00\",\n      \"discount\": \"0.00\",\n      \"discount_percent\": null,\n      \"tax\": \"0.00\",\n      \"tax_percent\": null,\n      \"tax_label\": null,\n      \"amount\": \"98.00\",\n      \"mrr\": \"98.00\",\n      \"counts_in_mrr\": false,\n      \"interval\": {\n        \"unit\": \"month\",\n        \"count\": 1\n      },\n      \"anchor_date\": \"2026-09-25\",\n      \"trial_days\": 0,\n      \"trial_end\": null,\n      \"billing\": {\n        \"lead_days\": 7,\n        \"terms_days\": 3,\n        \"cancel_after_days\": 14,\n        \"reminders\": [\n          -3,\n          0,\n          3,\n          7\n        ],\n        \"send_emails\": true,\n        \"email_receipts\": true,\n        \"allow_customer_cancel\": true\n      },\n      \"memo\": null,\n      \"terms\": \"Cancel any time from your subscription page.\",\n      \"reference\": \"PO-1042\",\n      \"current_period\": {\n        \"index\": 0,\n        \"start\": 1790294400,\n        \"end\": 1792886400\n      },\n      \"next_invoice\": null,\n      \"latest_invoice\": {\n        \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n        \"number\": \"INV-0043\",\n        \"status\": \"sent\",\n        \"period_index\": 0,\n        \"period_start\": 1790294400,\n        \"period_end\": 1792886400,\n        \"total\": \"98.00\",\n        \"amount_due\": \"98.00\",\n        \"due_date\": \"2026-09-28\",\n        \"issued_at\": 1790380525,\n        \"paid_at\": null,\n        \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n      },\n      \"paid_through\": null,\n      \"cycles_paid\": 0,\n      \"total_paid\": \"0.00\",\n      \"activated_at\": null,\n      \"last_paid_at\": null,\n      \"cancel_at_period_end\": false,\n      \"ends_at\": null,\n      \"canceled_at\": null,\n      \"cancel_reason\": null,\n      \"cancel_feedback\": null,\n      \"paused_at\": null,\n      \"pause_reason\": null,\n      \"billing_problem\": null,\n      \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n      \"source\": \"api\",\n      \"owner\": null,\n      \"version\": 0,\n      \"created\": 1790380525,\n      \"updated\": 1790380525\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create a subscription",
          "request": {
            "method": "POST",
            "header": [
              {"key": "Content-Type", "value": "application/json"},
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}",
                "description": "A value unique to the subscription you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first subscription (`200`); the same key with a different body is `409 idempotency_conflict`."
              }
            ],
            "url": {"raw": "{{base_url}}/subscriptions", "host": ["{{base_url}}"], "path": ["subscriptions"]},
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reference\": \"PO-1042\",\n  \"plan\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n  \"quantity\": \"2\",\n  \"customer\": {\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\"\n  }\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Subscribes a customer, from a `plan` or with its own lines and interval, in the credential's mode. One that starts today issues its first invoice before the response comes back: send the customer to `latest_invoice.url`, or let Railbed's email reach them. One with a trial or a later start issues nothing until its first invoice is due. Nothing is charged automatically: the customer pays each invoice on its page. Send `Idempotency-Key` so a retried request answers the first subscription instead of making a second.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#create-a-subscription"
          },
          "response": [
            {
              "name": "Create a subscription",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {"key": "Content-Type", "value": "application/json"},
                  {
                    "key": "Idempotency-Key",
                    "value": "{{$guid}}",
                    "description": "A value unique to the subscription you mean to make, 1–120 printable ASCII characters, remembered for 24 hours per account and mode. A retry with the same key and body returns the first subscription (`200`); the same key with a different body is `409 idempotency_conflict`."
                  }
                ],
                "url": {
                  "raw": "{{base_url}}/subscriptions",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reference\": \"PO-1042\",\n  \"plan\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n  \"quantity\": \"2\",\n  \"customer\": {\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\"\n  }\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Retrieve a subscription",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "description": "Returns one of your subscriptions as it stands now: one whose next invoice is due issues it first. Decide access on `stored_status` or `paid_through`; `status` can read `ending` while it still runs.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/subscriptions/#retrieve-a-subscription"
          },
          "response": [
            {
              "name": "Retrieve a subscription",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Update a subscription",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"reference\": \"PO-2001\",\n  \"expected_version\": 0\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes what each period bills, the customer's details, the collection settings or the owner, from the next invoice issued; an invoice already out never changes. The interval and dates can't change. Send the `version` you read as `expected_version`, so an edit made since answers `409 subscription_changed` instead of being overwritten.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#update-a-subscription"
          },
          "response": [
            {
              "name": "Update a subscription",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"reference\": \"PO-2001\",\n  \"expected_version\": 0\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Cancel a subscription",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id/cancel",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id", "cancel"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"when\": \"now\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Ends it at the end of the time paid for (the default: `status: \"ending\"` until `ends_at`, then `canceled`), or now with `when: \"now\"`, which voids its unpaid invoice unless `keep_open_invoice`. One with nothing paid yet ends at once. Works while the account is paused too.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#cancel-a-subscription"
          },
          "response": [
            {
              "name": "Cancel a subscription",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id/cancel",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id", "cancel"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"when\": \"now\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"canceled\",\n  \"stored_status\": \"canceled\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"void\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": 1790384125,\n  \"cancel_reason\": \"requested\",\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790384125\n}"
            }
          ]
        },
        {
          "name": "Keep a subscription",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id/keep",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id", "keep"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "description": "Undoes a scheduled end (`cancel_at_period_end`): it carries on, and the next invoice goes out on its day. Answers the subscription unchanged when no end is scheduled. Takes no body.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#keep-a-subscription"
          },
          "response": [
            {
              "name": "Keep a subscription",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id/keep",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id", "keep"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Pause a subscription",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id/pause",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id", "pause"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "description": "Stops issuing invoices until it is resumed. An invoice already out stays payable. Works while the account is paused too. Takes no body.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#pause-a-subscription"
          },
          "response": [
            {
              "name": "Pause a subscription",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id/pause",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id", "pause"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Resume a subscription",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id/resume",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id", "resume"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "body": {"mode": "raw", "raw": "{}", "options": {"raw": {"language": "json"}}},
            "description": "Starts billing a paused subscription again: from the next period, or with the period under way, in full, with `bill_now: true`.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#resume-a-subscription"
          },
          "response": [
            {
              "name": "Resume a subscription",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id/resume",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id", "resume"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                },
                "body": {"mode": "raw", "raw": "{}", "options": {"raw": {"language": "json"}}}
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Issue the next invoice now (Test)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscriptions/:id/advance",
              "host": ["{{base_url}}"],
              "path": ["subscriptions", ":id", "advance"],
              "variable": [
                {"key": "id", "value": "sub_Lq4nX7tR2mVc9KzW5pHd", "description": "The subscription's id."}
              ]
            },
            "description": "Test mode only: issues the next period's invoice now, to try a renewal without waiting. Refused while it is paused, set to end before that period, or has an unpaid invoice. A Live subscription is `409 live_subscription`: its invoices go out on their dates. Takes no body.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/subscriptions/#advance-a-subscription"
          },
          "response": [
            {
              "name": "Issue the next invoice now (Test)",
              "originalRequest": {
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscriptions/:id/advance",
                  "host": ["{{base_url}}"],
                  "path": ["subscriptions", ":id", "advance"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "sub_Lq4nX7tR2mVc9KzW5pHd",
                      "description": "The subscription's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"sub_Lq4nX7tR2mVc9KzW5pHd\",\n  \"object\": \"subscription\",\n  \"livemode\": false,\n  \"name\": \"Pro\",\n  \"plan\": {\n    \"id\": \"spl_8Hq2mVx5RtLc3NwZb7Ks\",\n    \"name\": \"Pro\"\n  },\n  \"status\": \"awaiting_payment\",\n  \"stored_status\": \"pending\",\n  \"customer\": {\n    \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n    \"name\": \"Ada Lovelace\",\n    \"email\": \"ada@example.com\",\n    \"company\": \"Analytical Engines Ltd\",\n    \"phone\": null\n  },\n  \"currency\": \"USD\",\n  \"lines\": [\n    {\n      \"description\": \"Pro\",\n      \"quantity\": \"2\",\n      \"unit_amount\": \"49.00\",\n      \"amount\": \"98.00\"\n    }\n  ],\n  \"subtotal\": \"98.00\",\n  \"discount\": \"0.00\",\n  \"discount_percent\": null,\n  \"tax\": \"0.00\",\n  \"tax_percent\": null,\n  \"tax_label\": null,\n  \"amount\": \"98.00\",\n  \"mrr\": \"98.00\",\n  \"counts_in_mrr\": false,\n  \"interval\": {\n    \"unit\": \"month\",\n    \"count\": 1\n  },\n  \"anchor_date\": \"2026-09-25\",\n  \"trial_days\": 0,\n  \"trial_end\": null,\n  \"billing\": {\n    \"lead_days\": 7,\n    \"terms_days\": 3,\n    \"cancel_after_days\": 14,\n    \"reminders\": [\n      -3,\n      0,\n      3,\n      7\n    ],\n    \"send_emails\": true,\n    \"email_receipts\": true,\n    \"allow_customer_cancel\": true\n  },\n  \"memo\": null,\n  \"terms\": \"Cancel any time from your subscription page.\",\n  \"reference\": \"PO-1042\",\n  \"current_period\": {\n    \"index\": 0,\n    \"start\": 1790294400,\n    \"end\": 1792886400\n  },\n  \"next_invoice\": null,\n  \"latest_invoice\": {\n    \"id\": \"in_Tz6pQ3wN8kHr1VbX5mLc\",\n    \"number\": \"INV-0043\",\n    \"status\": \"sent\",\n    \"period_index\": 0,\n    \"period_start\": 1790294400,\n    \"period_end\": 1792886400,\n    \"total\": \"98.00\",\n    \"amount_due\": \"98.00\",\n    \"due_date\": \"2026-09-28\",\n    \"issued_at\": 1790380525,\n    \"paid_at\": null,\n    \"url\": \"https://pay.railbed.io/i/9a3f6c2e7b1d4085c6e2f9a1b7d3c8e4\"\n  },\n  \"paid_through\": null,\n  \"cycles_paid\": 0,\n  \"total_paid\": \"0.00\",\n  \"activated_at\": null,\n  \"last_paid_at\": null,\n  \"cancel_at_period_end\": false,\n  \"ends_at\": null,\n  \"canceled_at\": null,\n  \"cancel_reason\": null,\n  \"cancel_feedback\": null,\n  \"paused_at\": null,\n  \"pause_reason\": null,\n  \"billing_problem\": null,\n  \"url\": \"https://pay.railbed.io/sub/2d7e9b4a6c1f4e83a0b5d8c2f6e1a9b3\",\n  \"source\": \"api\",\n  \"owner\": null,\n  \"version\": 0,\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Retrieve subscription metrics",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/subscription_metrics",
              "host": ["{{base_url}}"],
              "path": ["subscription_metrics"],
              "query": [
                {
                  "key": "period",
                  "value": "30d",
                  "description": "The window the movements, churn, collection, series and cohorts cover: `30d`, `90d` or `12m`. Anything else is `400 invalid_period`.",
                  "disabled": true
                }
              ]
            },
            "description": "Recurring revenue in the credential's mode, per currency: MRR and ARR, its movements, churn, retention, trials, collection, a series and cohorts, as Subscriptions → Revenue shows them. Figures are never added across currencies. They come from each subscription's own history, so they don't change when an invoice is edited.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/subscriptions/#retrieve-subscription-metrics"
          },
          "response": [
            {
              "name": "Retrieve subscription metrics",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/subscription_metrics",
                  "host": ["{{base_url}}"],
                  "path": ["subscription_metrics"],
                  "query": [
                    {
                      "key": "period",
                      "value": "30d",
                      "description": "The window the movements, churn, collection, series and cohorts cover: `30d`, `90d` or `12m`. Anything else is `400 invalid_period`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"object\": \"subscription_metrics\",\n  \"livemode\": false,\n  \"period\": \"30d\",\n  \"as_of\": 1790380525,\n  \"subscriptions\": 14,\n  \"plans\": 2,\n  \"currencies\": [\n    {\n      \"currency\": \"USD\",\n      \"mrr\": \"637.00\",\n      \"arr\": \"7644.00\",\n      \"mrr_start\": \"539.00\",\n      \"mrr_change\": {\n        \"amount\": \"98.00\",\n        \"percent\": 18.2\n      },\n      \"subscribers\": {\n        \"paying\": 12,\n        \"active\": 11,\n        \"past_due\": 1,\n        \"trialing\": 1,\n        \"paused\": 0,\n        \"pending\": 1\n      },\n      \"paying_start\": 10,\n      \"movements\": {\n        \"new\": {\n          \"count\": 3,\n          \"mrr\": \"147.00\"\n        },\n        \"reactivation\": {\n          \"count\": 0,\n          \"mrr\": \"0.00\"\n        },\n        \"expansion\": {\n          \"count\": 1,\n          \"mrr\": \"49.00\"\n        },\n        \"contraction\": {\n          \"count\": 0,\n          \"mrr\": \"0.00\"\n        },\n        \"churn\": {\n          \"count\": 1,\n          \"mrr\": \"98.00\"\n        },\n        \"paused\": {\n          \"count\": 0,\n          \"mrr\": \"0.00\"\n        },\n        \"resumed\": {\n          \"count\": 0,\n          \"mrr\": \"0.00\"\n        }\n      },\n      \"net_new_mrr\": \"98.00\",\n      \"subscriber_churn\": 0.1,\n      \"revenue_churn\": 0.182,\n      \"net_retention\": 0.909,\n      \"arpu\": \"53.08\",\n      \"ltv\": \"530.83\",\n      \"trials\": {\n        \"started\": 2,\n        \"ended\": 1,\n        \"converted\": 1,\n        \"rate\": 1\n      },\n      \"collection\": {\n        \"due\": 12,\n        \"paid_on_time\": 10,\n        \"paid_late\": 1,\n        \"unpaid\": 1,\n        \"voided\": 0,\n        \"rate\": 0.917,\n        \"on_time_rate\": 0.833,\n        \"median_days_to_pay\": 2,\n        \"collected\": \"588.00\"\n      },\n      \"past_due\": {\n        \"count\": 1,\n        \"amount\": \"49.00\"\n      },\n      \"upcoming\": {\n        \"count\": 4,\n        \"amount\": \"196.00\"\n      },\n      \"series\": [\n        {\n          \"at\": 1787788800,\n          \"mrr\": \"539.00\",\n          \"paying\": 10\n        },\n        {\n          \"at\": 1789084800,\n          \"mrr\": \"588.00\",\n          \"paying\": 11\n        },\n        {\n          \"at\": 1790380525,\n          \"mrr\": \"637.00\",\n          \"paying\": 12\n        }\n      ],\n      \"cohorts\": [\n        {\n          \"month\": \"2026-08\",\n          \"size\": 4,\n          \"retained\": [\n            4,\n            3\n          ]\n        },\n        {\n          \"month\": \"2026-09\",\n          \"size\": 3,\n          \"retained\": [\n            3\n          ]\n        }\n      ]\n    }\n  ]\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Checkouts",
      "item": [
        {
          "name": "List checkouts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/checkouts",
              "host": ["{{base_url}}"],
              "path": ["checkouts"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a checkout id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {"key": "kind", "value": "", "description": "Only this kind.", "disabled": true}
              ]
            },
            "description": "Returns active checkouts of every kind, newest first.\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/checkouts/#list-checkouts"
          },
          "response": [
            {
              "name": "List checkouts",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/checkouts",
                  "host": ["{{base_url}}"],
                  "path": ["checkouts"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: a checkout id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    },
                    {"key": "kind", "value": "", "description": "Only this kind.", "disabled": true}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"chk_Mg7tR2vX9kQp4WnZc8Lb\",\n      \"object\": \"checkout\",\n      \"kind\": \"page\",\n      \"slug\": \"mug4k7tq2z\",\n      \"url\": \"https://pay.railbed.io/c/mug4k7tq2z\",\n      \"livemode\": false,\n      \"active\": true,\n      \"name\": \"Ceramic mug\",\n      \"description\": \"Hand-thrown, 350 ml.\",\n      \"amount\": \"18.00\",\n      \"currency\": \"USD\",\n      \"success_url\": \"https://mugs.example/thanks\",\n      \"theme\": \"light\",\n      \"button_label\": null,\n      \"crypto\": true,\n      \"routing\": {\n        \"choice\": \"smart\",\n        \"provider\": null,\n        \"fallback\": true\n      },\n      \"collect\": null,\n      \"options\": null,\n      \"plans\": [],\n      \"created\": 1790380525,\n      \"updated\": 1790380525\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create a checkout",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {"raw": "{{base_url}}/checkouts", "host": ["{{base_url}}"], "path": ["checkouts"]},
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Ceramic mug\",\n  \"description\": \"Hand-thrown, 350 ml.\",\n  \"amount\": \"18.00\",\n  \"currency\": \"USD\",\n  \"success_url\": \"https://mugs.example/thanks\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Creates a reusable checkout page. Every buyer who pays it gets their own payment.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/checkouts/#create-a-checkout"
          },
          "response": [
            {
              "name": "Create a checkout",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {"raw": "{{base_url}}/checkouts", "host": ["{{base_url}}"], "path": ["checkouts"]},
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"name\": \"Ceramic mug\",\n  \"description\": \"Hand-thrown, 350 ml.\",\n  \"amount\": \"18.00\",\n  \"currency\": \"USD\",\n  \"success_url\": \"https://mugs.example/thanks\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"chk_Mg7tR2vX9kQp4WnZc8Lb\",\n  \"object\": \"checkout\",\n  \"kind\": \"page\",\n  \"slug\": \"mug4k7tq2z\",\n  \"url\": \"https://pay.railbed.io/c/mug4k7tq2z\",\n  \"livemode\": false,\n  \"active\": true,\n  \"name\": \"Ceramic mug\",\n  \"description\": \"Hand-thrown, 350 ml.\",\n  \"amount\": \"18.00\",\n  \"currency\": \"USD\",\n  \"success_url\": \"https://mugs.example/thanks\",\n  \"theme\": \"light\",\n  \"button_label\": null,\n  \"crypto\": true,\n  \"routing\": {\n    \"choice\": \"smart\",\n    \"provider\": null,\n    \"fallback\": true\n  },\n  \"collect\": null,\n  \"options\": null,\n  \"plans\": [],\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Retrieve a checkout",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/checkouts/:id",
              "host": ["{{base_url}}"],
              "path": ["checkouts", ":id"],
              "variable": [
                {"key": "id", "value": "chk_Mg7tR2vX9kQp4WnZc8Lb", "description": "The checkout's id."}
              ]
            },
            "description": "Returns a checkout by its id, including a deleted one (`active: false`).\n\nScope: `payments:read`. Reference: https://railbed.com/docs/api/checkouts/#retrieve-a-checkout"
          },
          "response": [
            {
              "name": "Retrieve a checkout",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/checkouts/:id",
                  "host": ["{{base_url}}"],
                  "path": ["checkouts", ":id"],
                  "variable": [
                    {"key": "id", "value": "chk_Mg7tR2vX9kQp4WnZc8Lb", "description": "The checkout's id."}
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"chk_Mg7tR2vX9kQp4WnZc8Lb\",\n  \"object\": \"checkout\",\n  \"kind\": \"page\",\n  \"slug\": \"mug4k7tq2z\",\n  \"url\": \"https://pay.railbed.io/c/mug4k7tq2z\",\n  \"livemode\": false,\n  \"active\": true,\n  \"name\": \"Ceramic mug\",\n  \"description\": \"Hand-thrown, 350 ml.\",\n  \"amount\": \"18.00\",\n  \"currency\": \"USD\",\n  \"success_url\": \"https://mugs.example/thanks\",\n  \"theme\": \"light\",\n  \"button_label\": null,\n  \"crypto\": true,\n  \"routing\": {\n    \"choice\": \"smart\",\n    \"provider\": null,\n    \"fallback\": true\n  },\n  \"collect\": null,\n  \"options\": null,\n  \"plans\": [],\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Update a checkout",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/checkouts/:id",
              "host": ["{{base_url}}"],
              "path": ["checkouts", ":id"],
              "variable": [
                {"key": "id", "value": "chk_Mg7tR2vX9kQp4WnZc8Lb", "description": "The checkout's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"amount\": \"20.00\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes a saved checkout by the dashboard editor's rules and leaves the rest. A price, currency or provider choice meets the same checks as a new checkout. `active: false` turns it off and `true` back on, which is never refused, so a checkout can always be stopped. Its currency is fixed once a buyer has paid or gone to pay from it. A deleted checkout can't be changed.\n\nScope: `checkouts:write`. Reference: https://railbed.com/docs/api/checkouts/#update-a-checkout"
          },
          "response": [
            {
              "name": "Update a checkout",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/checkouts/:id",
                  "host": ["{{base_url}}"],
                  "path": ["checkouts", ":id"],
                  "variable": [
                    {"key": "id", "value": "chk_Mg7tR2vX9kQp4WnZc8Lb", "description": "The checkout's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"amount\": \"20.00\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"chk_Mg7tR2vX9kQp4WnZc8Lb\",\n  \"object\": \"checkout\",\n  \"kind\": \"page\",\n  \"slug\": \"mug4k7tq2z\",\n  \"url\": \"https://pay.railbed.io/c/mug4k7tq2z\",\n  \"livemode\": false,\n  \"active\": true,\n  \"name\": \"Ceramic mug\",\n  \"description\": \"Hand-thrown, 350 ml.\",\n  \"amount\": \"18.00\",\n  \"currency\": \"USD\",\n  \"success_url\": \"https://mugs.example/thanks\",\n  \"theme\": \"light\",\n  \"button_label\": null,\n  \"crypto\": true,\n  \"routing\": {\n    \"choice\": \"smart\",\n    \"provider\": null,\n    \"fallback\": true\n  },\n  \"collect\": null,\n  \"options\": null,\n  \"plans\": [],\n  \"created\": 1790380525,\n  \"updated\": 1790380525\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Orders",
      "item": [
        {
          "name": "List orders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/orders",
              "host": ["{{base_url}}"],
              "path": ["orders"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: an order id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {
                  "key": "customer_id",
                  "value": "",
                  "description": "Only this customer's orders.",
                  "disabled": true
                },
                {
                  "key": "store_id",
                  "value": "",
                  "description": "Only orders from this store (the `order.store.id` you sent).",
                  "disabled": true
                },
                {
                  "key": "store_order_id",
                  "value": "",
                  "description": "With `store_id`: the order with this `order.id`.",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Only orders with this `status`.",
                  "disabled": true
                },
                {
                  "key": "fulfillment",
                  "value": "",
                  "description": "Only orders with this `fulfillment`.",
                  "disabled": true
                },
                {
                  "key": "created_gte",
                  "value": "",
                  "description": "Created at or after this time, in Unix seconds.",
                  "disabled": true
                },
                {
                  "key": "created_lte",
                  "value": "",
                  "description": "Created at or before this time, in Unix seconds. Not before `created_gte` (`400 invalid_dates`).",
                  "disabled": true
                }
              ]
            },
            "description": "Returns orders newest first, or finds one by your store's order id with `store_id` and `store_order_id`. `status=paid` with `fulfillment=unfulfilled` is the orders still to send.\n\nScope: `orders:read`. Reference: https://railbed.com/docs/api/orders/#list-orders"
          },
          "response": []
        },
        {
          "name": "Retrieve an order",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/orders/:id",
              "host": ["{{base_url}}"],
              "path": ["orders", ":id"],
              "variable": [
                {"key": "id", "value": "ord_Vd3kR8mQ1xTn6LpZs0Wa", "description": "The order's id."}
              ]
            },
            "description": "Returns an order with every item and every payment attempt.\n\nScope: `orders:read`. Reference: https://railbed.com/docs/api/orders/#retrieve-an-order"
          },
          "response": []
        },
        {
          "name": "Update an order",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/orders/:id",
              "host": ["{{base_url}}"],
              "path": ["orders", ":id"],
              "variable": [
                {"key": "id", "value": "ord_Vd3kR8mQ1xTn6LpZs0Wa", "description": "The order's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fulfillment\": \"fulfilled\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Sets an order's fulfilment. The change is on the order's timeline.\n\nScope: `orders:write`. Reference: https://railbed.com/docs/api/orders/#update-an-order"
          },
          "response": []
        },
        {
          "name": "Report a cancellation or refund",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/orders/:id/events",
              "host": ["{{base_url}}"],
              "path": ["orders", ":id", "events"],
              "variable": [
                {"key": "id", "value": "ord_Vd3kR8mQ1xTn6LpZs0Wa", "description": "The order's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"type\": \"refunded\",\n  \"id\": \"refund-5521\",\n  \"amount\": \"12.00\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Records that your store canceled its order or refunded it, on the order's timeline. It never changes the order's status, its payments or any money: refunds are sent from your wallet.\n\nScope: `orders:write`. Reference: https://railbed.com/docs/api/orders/#report-a-cancellation-or-refund"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Customers",
      "item": [
        {
          "name": "List customers",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/customers",
              "host": ["{{base_url}}"],
              "path": ["customers"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a customer id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                },
                {
                  "key": "email",
                  "value": "",
                  "description": "Only the customer with this email (any letter case).",
                  "disabled": true
                }
              ]
            },
            "description": "Returns customers newest first, or finds one by email.\n\nScope: `customers:read`. Reference: https://railbed.com/docs/api/customers/#list-customers"
          },
          "response": []
        },
        {
          "name": "Retrieve a customer",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/customers/:id",
              "host": ["{{base_url}}"],
              "path": ["customers", ":id"],
              "variable": [
                {"key": "id", "value": "cus_Hc7nQ2wVz9KpT4mRb1Ye", "description": "The customer's id."}
              ]
            },
            "description": "Returns a customer with their order counts and what they've spent.\n\nScope: `customers:read`. Reference: https://railbed.com/docs/api/customers/#retrieve-a-customer"
          },
          "response": []
        },
        {
          "name": "Update a customer",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/customers/:id",
              "host": ["{{base_url}}"],
              "path": ["customers", ":id"],
              "variable": [
                {"key": "id", "value": "cus_Hc7nQ2wVz9KpT4mRb1Ye", "description": "The customer's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phone\": \"+44 20 7946 0000\",\n  \"shipping_address\": {\n    \"name\": \"Ada Lovelace\",\n    \"line1\": \"12 St James’s Square\",\n    \"city\": \"London\",\n    \"postal_code\": \"SW1Y 4LB\",\n    \"country\": \"GB\"\n  },\n  \"expected_version\": 1\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes the contact details you send and leaves the rest, by the dashboard's rules. The change is on the customer's activity as your key's or agent's (which fields, never the values). Send the `version` you read as `expected_version` so an edit made since answers `409 edit_conflict`. Nothing is sent to the customer.\n\nScope: `orders:write`. Reference: https://railbed.com/docs/api/customers/#update-a-customer"
          },
          "response": [
            {
              "name": "Update a customer",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/customers/:id",
                  "host": ["{{base_url}}"],
                  "path": ["customers", ":id"],
                  "variable": [
                    {"key": "id", "value": "cus_Hc7nQ2wVz9KpT4mRb1Ye", "description": "The customer's id."}
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"phone\": \"+44 20 7946 0000\",\n  \"shipping_address\": {\n    \"name\": \"Ada Lovelace\",\n    \"line1\": \"12 St James’s Square\",\n    \"city\": \"London\",\n    \"postal_code\": \"SW1Y 4LB\",\n    \"country\": \"GB\"\n  },\n  \"expected_version\": 1\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"cus_Rk8mW3pZ6tQv1NxLc4Ys\",\n  \"object\": \"customer\",\n  \"livemode\": false,\n  \"email\": \"ada@example.com\",\n  \"name\": \"Ada Lovelace\",\n  \"phone\": \"+44 20 7946 0000\",\n  \"date_of_birth\": null,\n  \"accepts_marketing\": true,\n  \"accepts_marketing_updated_at\": 1790380525,\n  \"shipping_address\": {\n    \"name\": \"Ada Lovelace\",\n    \"line1\": \"12 St James’s Square\",\n    \"line2\": null,\n    \"city\": \"London\",\n    \"region\": null,\n    \"postal_code\": \"SW1Y 4LB\",\n    \"country\": \"GB\"\n  },\n  \"billing_address\": null,\n  \"store_accounts\": [],\n  \"orders_count\": 3,\n  \"paid_orders_count\": 2,\n  \"spent\": {\n    \"USD\": \"98.00\"\n  },\n  \"created\": 1789170925,\n  \"last_order_at\": 1790380525,\n  \"erased\": false,\n  \"version\": 2\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Customer portal",
      "item": [
        {
          "name": "Retrieve the customer portal",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/customer_portal",
              "host": ["{{base_url}}"],
              "path": ["customer_portal"]
            },
            "description": "Your customer portal's settings as they stand: whether it's on, its address, its words, sections and links. They are changed in the dashboard only.\n\nScope: `customers:read`. Reference: https://railbed.com/docs/api/customer-portal/#retrieve-the-customer-portal"
          },
          "response": [
            {
              "name": "Retrieve the customer portal",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/customer_portal",
                  "host": ["{{base_url}}"],
                  "path": ["customer_portal"]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"object\": \"customer_portal\",\n  \"enabled\": true,\n  \"url\": \"https://pay.railbed.io/portal/northwind-studio-k7rq\",\n  \"headline\": null,\n  \"welcome\": \"Your orders, receipts and invoices from Northwind Studio.\",\n  \"help_text\": \"Refunds within 30 days of purchase.\",\n  \"receipt_details\": null,\n  \"sections\": {\n    \"invoices\": true,\n    \"receipts\": true,\n    \"edit_details\": true,\n    \"marketing\": false,\n    \"preferred_provider\": true,\n    \"subscriptions\": true\n  },\n  \"links\": {\n    \"support_email\": \"help@northwind.example\",\n    \"support_url\": null,\n    \"refund_policy_url\": \"https://northwind.example/refunds\",\n    \"terms_url\": null,\n    \"privacy_url\": null,\n    \"website_url\": \"https://northwind.example\"\n  }\n}"
            }
          ]
        },
        {
          "name": "Create a customer portal session",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/customer_portal/sessions",
              "host": ["{{base_url}}"],
              "path": ["customer_portal", "sessions"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"customer\": \"cus_Hc7nQ2wVz9KpT4mRb1Ye\",\n  \"return_url\": \"https://northwind.example/account\"\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Signs one of your customers in to your customer portal from your own site: a single-use link to their portal, good for 5 minutes, that signs them in for an hour. Name the customer by `customer` or `email`, in the key's mode. The portal must be on.\n\nScope: `orders:write`. Reference: https://railbed.com/docs/api/customer-portal/#create-a-customer-portal-session"
          },
          "response": [
            {
              "name": "Create a customer portal session",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/customer_portal/sessions",
                  "host": ["{{base_url}}"],
                  "path": ["customer_portal", "sessions"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"customer\": \"cus_Hc7nQ2wVz9KpT4mRb1Ye\",\n  \"return_url\": \"https://northwind.example/account\"\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"object\": \"customer_portal_session\",\n  \"customer\": \"cus_Hc7nQ2wVz9KpT4mRb1Ye\",\n  \"livemode\": true,\n  \"url\": \"https://pay.railbed.io/portal/northwind-studio-k7rq#t=Qm9KcW1xV3pYcjRkTjhwTGs2SnRZdjNiSGY1Uw2RzAx\",\n  \"return_url\": \"https://northwind.example/account\",\n  \"expires_at\": 1790380825\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "Webhook endpoints",
      "item": [
        {
          "name": "List webhook endpoints",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/webhook_endpoints",
              "host": ["{{base_url}}"],
              "path": ["webhook_endpoints"],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                  "disabled": true
                },
                {
                  "key": "starting_after",
                  "value": "",
                  "description": "The `next_cursor` of the previous page: a webhook endpoint id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                  "disabled": true
                }
              ]
            },
            "description": "Returns this mode's endpoints newest first. Secret keys with Full access for the API only: connected agents, WooCommerce keys and Read only keys can't manage webhook endpoints.\n\nScope: `webhooks:read`. Reference: https://railbed.com/docs/api/webhook-endpoints/#list-webhook-endpoints"
          },
          "response": [
            {
              "name": "List webhook endpoints",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/webhook_endpoints",
                  "host": ["{{base_url}}"],
                  "path": ["webhook_endpoints"],
                  "query": [
                    {
                      "key": "limit",
                      "value": "20",
                      "description": "How many to return, 1–100. Anything else is `400 invalid_limit`.",
                      "disabled": true
                    },
                    {
                      "key": "starting_after",
                      "value": "",
                      "description": "The `next_cursor` of the previous page: a webhook endpoint id from this list, in this mode. Anything else is `400 invalid_cursor`.",
                      "disabled": true
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"data\": [\n    {\n      \"id\": \"we_N8nQ4vRx7KtZ2mLp9WcB\",\n      \"object\": \"webhook_endpoint\",\n      \"url\": \"https://automation.example.com/webhook/railbed-orders\",\n      \"description\": \"n8n: Fulfil paid orders\",\n      \"events\": [\n        \"payment.paid\",\n        \"payment.held\"\n      ],\n      \"livemode\": false,\n      \"mode\": \"test\",\n      \"previous_secret_expires_at\": null,\n      \"created\": 1790380525\n    }\n  ],\n  \"has_more\": false,\n  \"next_cursor\": null\n}"
            }
          ]
        },
        {
          "name": "Create a webhook endpoint",
          "request": {
            "method": "POST",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/webhook_endpoints",
              "host": ["{{base_url}}"],
              "path": ["webhook_endpoints"]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://automation.example.com/webhook/railbed-orders\",\n  \"description\": \"n8n: Fulfil paid orders\",\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\"\n  ]\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Adds an endpoint and returns its signing secret, the only time the API shows it. Secret keys with Full access for the API only: connected agents, WooCommerce keys and Read only keys can't manage webhook endpoints.\n\nScope: `webhooks:write`. Reference: https://railbed.com/docs/api/webhook-endpoints/#create-a-webhook-endpoint"
          },
          "response": [
            {
              "name": "Create a webhook endpoint",
              "originalRequest": {
                "method": "POST",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/webhook_endpoints",
                  "host": ["{{base_url}}"],
                  "path": ["webhook_endpoints"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"url\": \"https://automation.example.com/webhook/railbed-orders\",\n  \"description\": \"n8n: Fulfil paid orders\",\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\"\n  ]\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"we_N8nQ4vRx7KtZ2mLp9WcB\",\n  \"object\": \"webhook_endpoint\",\n  \"url\": \"https://automation.example.com/webhook/railbed-orders\",\n  \"description\": \"n8n: Fulfil paid orders\",\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\"\n  ],\n  \"livemode\": false,\n  \"mode\": \"test\",\n  \"previous_secret_expires_at\": null,\n  \"created\": 1790380525,\n  \"secret\": \"whsec_Tq7mVx2RkL9pZc4WbN8yHd3Jf6Gs1Ae0Ku5Xo-Pi_Mr\"\n}"
            }
          ]
        },
        {
          "name": "Retrieve a webhook endpoint",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/webhook_endpoints/:id",
              "host": ["{{base_url}}"],
              "path": ["webhook_endpoints", ":id"],
              "variable": [
                {"key": "id", "value": "we_N8nQ4vRx7KtZ2mLp9WcB", "description": "The webhook endpoint's id."}
              ]
            },
            "description": "Returns an endpoint, without its secret. A removed endpoint is `404`. Secret keys with Full access for the API only: connected agents, WooCommerce keys and Read only keys can't manage webhook endpoints.\n\nScope: `webhooks:read`. Reference: https://railbed.com/docs/api/webhook-endpoints/#retrieve-a-webhook-endpoint"
          },
          "response": [
            {
              "name": "Retrieve a webhook endpoint",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/webhook_endpoints/:id",
                  "host": ["{{base_url}}"],
                  "path": ["webhook_endpoints", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "we_N8nQ4vRx7KtZ2mLp9WcB",
                      "description": "The webhook endpoint's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"we_N8nQ4vRx7KtZ2mLp9WcB\",\n  \"object\": \"webhook_endpoint\",\n  \"url\": \"https://automation.example.com/webhook/railbed-orders\",\n  \"description\": \"n8n: Fulfil paid orders\",\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\"\n  ],\n  \"livemode\": false,\n  \"mode\": \"test\",\n  \"previous_secret_expires_at\": null,\n  \"created\": 1790380525\n}"
            }
          ]
        },
        {
          "name": "Delete a webhook endpoint",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{base_url}}/webhook_endpoints/:id",
              "host": ["{{base_url}}"],
              "path": ["webhook_endpoints", ":id"],
              "variable": [
                {"key": "id", "value": "we_N8nQ4vRx7KtZ2mLp9WcB", "description": "The webhook endpoint's id."}
              ]
            },
            "description": "Removes an endpoint and cancels its pending retries. It works in every account state, as revoking a key does. Secret keys with Full access for the API only: connected agents, WooCommerce keys and Read only keys can't manage webhook endpoints.\n\nScope: `webhooks:write`. Reference: https://railbed.com/docs/api/webhook-endpoints/#delete-a-webhook-endpoint"
          },
          "response": [
            {
              "name": "Delete a webhook endpoint",
              "originalRequest": {
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{base_url}}/webhook_endpoints/:id",
                  "host": ["{{base_url}}"],
                  "path": ["webhook_endpoints", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "we_N8nQ4vRx7KtZ2mLp9WcB",
                      "description": "The webhook endpoint's id."
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"we_N8nQ4vRx7KtZ2mLp9WcB\",\n  \"object\": \"webhook_endpoint\",\n  \"deleted\": true\n}"
            }
          ]
        },
        {
          "name": "Update a webhook endpoint",
          "request": {
            "method": "PATCH",
            "header": [{"key": "Content-Type", "value": "application/json"}],
            "url": {
              "raw": "{{base_url}}/webhook_endpoints/:id",
              "host": ["{{base_url}}"],
              "path": ["webhook_endpoints", ":id"],
              "variable": [
                {"key": "id", "value": "we_N8nQ4vRx7KtZ2mLp9WcB", "description": "The webhook endpoint's id."}
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\",\n    \"invoice.paid\"\n  ]\n}",
              "options": {"raw": {"language": "json"}}
            },
            "description": "Changes the events an endpoint receives, or its description, and leaves the rest. Its address and signing secret never change: for a new address, delete the endpoint and create another. Secret keys with Full access for the API only: connected agents, WooCommerce keys and Read only keys can't manage webhook endpoints.\n\nScope: `webhooks:write`. Reference: https://railbed.com/docs/api/webhook-endpoints/#update-a-webhook-endpoint"
          },
          "response": [
            {
              "name": "Update a webhook endpoint",
              "originalRequest": {
                "method": "PATCH",
                "header": [{"key": "Content-Type", "value": "application/json"}],
                "url": {
                  "raw": "{{base_url}}/webhook_endpoints/:id",
                  "host": ["{{base_url}}"],
                  "path": ["webhook_endpoints", ":id"],
                  "variable": [
                    {
                      "key": "id",
                      "value": "we_N8nQ4vRx7KtZ2mLp9WcB",
                      "description": "The webhook endpoint's id."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\",\n    \"invoice.paid\"\n  ]\n}",
                  "options": {"raw": {"language": "json"}}
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [{"key": "Content-Type", "value": "application/json"}],
              "body": "{\n  \"id\": \"we_N8nQ4vRx7KtZ2mLp9WcB\",\n  \"object\": \"webhook_endpoint\",\n  \"url\": \"https://automation.example.com/webhook/railbed-orders\",\n  \"description\": \"n8n: Fulfil paid orders\",\n  \"events\": [\n    \"payment.paid\",\n    \"payment.held\",\n    \"invoice.paid\"\n  ],\n  \"livemode\": false,\n  \"mode\": \"test\",\n  \"previous_secret_expires_at\": null,\n  \"created\": 1790380525\n}"
            }
          ]
        }
      ]
    }
  ]
}
