{
  "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    }\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}"
            }
          ]
        },
        {
          "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}"
            }
          ]
        },
        {
          "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}"
            }
          ]
        }
      ]
    },
    {
      "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": "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": "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      \"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  \"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  \"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  \"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  \"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  \"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  \"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": "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": "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": "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": "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}"
            }
          ]
        }
      ]
    }
  ]
}
