{
    "info": {
        "name": "Regoria merchant API",
        "description": "Generated from the published OpenAPI document. Set `apiKey` to a mor_test_ key; `baseUrl` is the sandbox.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{apiKey}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://api.sandbox.staging.regoria.com"
        },
        {
            "key": "apiKey",
            "value": "mor_test_your_key_here"
        }
    ],
    "item": [
        {
            "name": "Catalog",
            "description": "Products, their prices and the plans a subscription follows.",
            "item": [
                {
                    "name": "List prices",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `price_version`, `amount_cents`, `active_from`, `active_to` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.prices.read`."
                    }
                },
                {
                    "name": "Create a price",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices"
                            ]
                        },
                        "description": "Adds a one-off or recurring price to a product beside its other active prices. With `replaces_price_id` it is a successor that archives the price it replaces.\n\nScope: `v1.prices.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"product_id\": \"prd_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"type\": \"recurring\",\n    \"amount_cents\": 2900,\n    \"recurring\": {\n        \"interval\": \"month\",\n        \"interval_count\": 1,\n        \"trial_interval\": \"day\",\n        \"trial_interval_count\": 14,\n        \"trial_price_cents\": 0\n    },\n    \"nickname\": \"Pro monthly\",\n    \"tax_inclusive\": false\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a price",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices/:price",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices",
                                ":price"
                            ]
                        },
                        "description": "Scope: `v1.prices.read`."
                    }
                },
                {
                    "name": "Update a price",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices/:price",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices",
                                ":price"
                            ]
                        },
                        "description": "Updates a price's nickname and metadata. Nothing else of a price changes.\n\nScope: `v1.prices.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"nickname\": \"Pro monthly\",\n    \"metadata\": {\n        \"crm_ref\": \"CRM-1001\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Archive a price",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices/:price/archive",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices",
                                ":price",
                                "archive"
                            ]
                        },
                        "description": "No new checkout sells an archived price. Existing subscriptions keep renewing on it.\n\nScope: `v1.prices.write`."
                    }
                },
                {
                    "name": "Preview a price",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices/:price/preview",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices",
                                ":price",
                                "preview"
                            ]
                        },
                        "description": "Returns what a price would cost a buyer in a country, for your storefront's display: the currency the hosted checkout would open in for that country and the price's amount in it (its own amount, the fixed amount set in that currency, or converted at the rate in force). Nothing is created or locked: the checkout session locks its own rate.\n\nScope: `v1.prices.read`."
                    }
                },
                {
                    "name": "Unarchive a price",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/prices/:price/unarchive",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "prices",
                                ":price",
                                "unarchive"
                            ]
                        },
                        "description": "A price that already has a successor stays archived (409 `price_superseded`).\n\nScope: `v1.prices.write`."
                    }
                },
                {
                    "name": "List products",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "products"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `updated_at`, `name`, `status`, `tax_code` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.products.read`."
                    }
                },
                {
                    "name": "Create a product",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/products",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "products"
                            ]
                        },
                        "description": "Creates a product with its first price.\n\nScope: `v1.products.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Starter pack\",\n    \"sku\": \"SKU-001\",\n    \"tax_code\": \"text\",\n    \"amount_cents\": 2900,\n    \"metadata\": {\n        \"crm_ref\": \"CRM-1001\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a product",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/products/:product",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "products",
                                ":product"
                            ]
                        },
                        "description": "Returns a product with its active prices.\n\nScope: `v1.products.read`."
                    }
                },
                {
                    "name": "Update a product",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/products/:product",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "products",
                                ":product"
                            ]
                        },
                        "description": "Updates a product's name, description, tax code, sku or metadata. Send the row `version` you read.\n\nScope: `v1.products.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"name\": \"Starter pack\",\n    \"version\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Archive a product",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/products/:product/archive",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "products",
                                ":product",
                                "archive"
                            ]
                        },
                        "description": "The product leaves the catalog. Existing orders and subscriptions are untouched.\n\nScope: `v1.products.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"version\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Unarchive a product",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/products/:product/unarchive",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "products",
                                ":product",
                                "unarchive"
                            ]
                        },
                        "description": "The product returns to the catalog with the prices it kept. A product that is already active is returned as it is.\n\nScope: `v1.products.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"version\": 1\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Checkout sessions",
            "description": "Hosted checkout: open a session, send the buyer, receive the order.",
            "item": [
                {
                    "name": "Create a checkout session",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/checkout-sessions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "checkout-sessions"
                            ]
                        },
                        "description": "Opens a hosted checkout session and returns the URL to send the buyer to. Answers 503 with `Retry-After` when the session cannot be opened safely yet; retry with the same `Idempotency-Key`.\n\nScope: `v1.checkout_sessions.write`.\n\nRequires `Idempotency-Key`; the same key replays the first answer for 24 hours.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"store_id\": \"sto_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"mode\": \"setup\",\n    \"subscription_id\": \"sub_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"buyer_email\": \"buyer@example.com\",\n    \"buyer_id\": \"buy_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"buyer_name\": \"Jamie Rivera\",\n    \"customer_ref\": \"cus_A1B2\",\n    \"reference\": \"INV-1001\",\n    \"billing_address\": {\n        \"line1\": \"1 Main St\",\n        \"line2\": \"Suite 200\",\n        \"city\": \"Austin\",\n        \"state\": \"TX\",\n        \"postal_code\": \"73301\",\n        \"country\": \"US\"\n    },\n    \"save_payment_method\": false,\n    \"success_url\": \"https://shop.example.com/thanks\",\n    \"cancel_url\": \"https://shop.example.com/cart\",\n    \"metadata\": {\n        \"crm_ref\": \"CRM-1001\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a checkout session",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/checkout-sessions/:session",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "checkout-sessions",
                                ":session"
                            ]
                        },
                        "description": "Scope: `v1.checkout_sessions.write`."
                    }
                },
                {
                    "name": "Expire a checkout session",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/checkout-sessions/:session/expire",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "checkout-sessions",
                                ":session",
                                "expire"
                            ]
                        },
                        "description": "Cancels an open session. The buyer can no longer pay on it.\n\nScope: `v1.checkout_sessions.write`."
                    }
                }
            ]
        },
        {
            "name": "Orders",
            "description": "Paid orders, server-side charges on a saved card, fulfilment and receipts.",
            "item": [
                {
                    "name": "List orders",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/orders",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "orders"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `captured_at`, `total_cents`, `subtotal_cents`, `refunded_cents`, `status`, `buyer_email`, `buyer_name`, `source`, `fulfilled_at` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.orders.read`."
                    }
                },
                {
                    "name": "Create an order with a saved card (not available yet)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/orders",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "orders"
                            ]
                        },
                        "description": "Not available yet. Merchant-initiated orders are out of launch scope: the hosted page does not capture the stored-credential consent this call needs, so every call answers 422 stored_credential_consent_missing and charges nothing.\n\nScope: `v1.orders.write`.\n\nRequires `Idempotency-Key`; the same key replays the first answer for 24 hours.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"merchant_id\": \"mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"lines\": [\n        {\n            \"price_id\": \"prc_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n            \"quantity\": 1\n        }\n    ],\n    \"payment_method_id\": \"pm_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"buyer_id\": \"buy_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"buyer_email\": \"buyer@example.com\",\n    \"customer_ref\": \"cus_A1B2\",\n    \"reference\": \"INV-1001\",\n    \"billing_address\": {\n        \"line1\": \"1 Main St\",\n        \"line2\": \"Suite 200\",\n        \"city\": \"Austin\",\n        \"state\": \"TX\",\n        \"postal_code\": \"73301\",\n        \"country\": \"US\"\n    },\n    \"subscription_id\": \"sub_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"period_id\": \"per_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"merchant_initiated\": false,\n    \"agreement\": \"recurring\",\n    \"metadata\": {\n        \"crm_ref\": \"CRM-1001\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get an order",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/orders/:order",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "orders",
                                ":order"
                            ]
                        },
                        "description": "Scope: `v1.orders.read`."
                    }
                },
                {
                    "name": "Mark an order fulfilled",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/orders/:order/fulfil",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "orders",
                                ":order",
                                "fulfil"
                            ]
                        },
                        "description": "Marks the order fulfilled, with optional evidence.\n\nScope: `v1.orders.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"evidence\": {\n        \"type\": \"card\",\n        \"url\": \"https://shop.example.com/webhooks\",\n        \"note\": \"text\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get an order's receipt",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/orders/:order/receipt",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "orders",
                                ":order",
                                "receipt"
                            ]
                        },
                        "description": "Returns the receipt payload with a fresh signed link.\n\nScope: `v1.orders.read`."
                    }
                }
            ]
        },
        {
            "name": "Customers",
            "description": "Your customers as the API knows them, keyed by your own customer reference.",
            "item": [
                {
                    "name": "List customers",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/customers",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "customers"
                            ]
                        },
                        "description": "Lists your customers: those with an order first, newest activity first, then those with none, newest first.\n\nSort keys: `last_order_at`, `created_at`, `first_order_at`, `orders_count`, `refunded_cents`, `customer_ref` (default `-last_order_at,-created_at`).\n\nScope: `v1.customers.read`."
                    }
                },
                {
                    "name": "Create a customer",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/customers",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "customers"
                            ]
                        },
                        "description": "Answers 409 `customer_exists` when you already have the `customer_ref`, and 409 `customer_already_exists`, carrying that customer's `customer_id`, when another of your customers holds the email in any letter case.\n\nScope: `v1.customers.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"customer_ref\": \"cus_A1B2\",\n    \"email\": \"buyer@example.com\",\n    \"name\": \"Starter pack\",\n    \"metadata\": {\n        \"crm_ref\": \"CRM-1001\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a customer",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/customers/:customer",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "customers",
                                ":customer"
                            ]
                        },
                        "description": "Returns one customer by its `cus_` id. Answers 404 `not_found` for an unknown id.\n\nScope: `v1.customers.read`."
                    }
                },
                {
                    "name": "Update a customer",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/customers/:customer",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "customers",
                                ":customer"
                            ]
                        },
                        "description": "Updates a customer's email, name or metadata; the last write wins. Answers 422 `customer_ref_immutable` when `customer_ref` is sent, and 409 `customer_already_exists`, carrying that customer's `customer_id` and writing nothing, when another of your customers holds the email in any letter case.\n\nScope: `v1.customers.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"email\": \"buyer@example.com\",\n    \"name\": \"Starter pack\",\n    \"metadata\": {\n        \"crm_ref\": \"CRM-1001\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Portal",
            "description": "One-time links into the hosted customer portal.",
            "item": [
                {
                    "name": "Create a portal session",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/portal-sessions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "portal-sessions"
                            ]
                        },
                        "description": "Creates a direct-entry portal link for one customer: it lives 10 minutes, opens once, and needs no email and no code. Name the customer by `customer_id` or `customer_ref`; `flow` and `subscription_id` deep-link it. An `email` fills an empty one and never overwrites. Answers 422 `validation` or `customer_email_required`, 409 `customer_already_exists` with the email owner's `customer_id`, and 404 `not_found`.\n\nScope: `v1.portal_sessions.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"customer_ref\": \"cus_A1B2\",\n    \"email\": \"buyer@example.com\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Charges",
            "description": "Card charges behind orders and renewals (read-only).",
            "item": [
                {
                    "name": "List charges",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/charges",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "charges"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `captured_at`, `settled_at`, `amount_cents`, `refunded_cents`, `state`, `cof_intent` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.charges.read`."
                    }
                },
                {
                    "name": "Get a charge",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/charges/:charge",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "charges",
                                ":charge"
                            ]
                        },
                        "description": "Scope: `v1.charges.read`."
                    }
                }
            ]
        },
        {
            "name": "Refunds",
            "description": "Full and partial refunds of a charge.",
            "item": [
                {
                    "name": "List refunds",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/refunds",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "refunds"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `issued_at`, `amount_cents`, `state`, `source` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.charges.read`."
                    }
                },
                {
                    "name": "Create a refund",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/refunds",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "refunds"
                            ]
                        },
                        "description": "The refund is sent to the processor at once, limited only by what is left of its charge.\n\nScope: `v1.refunds.write`.\n\nRequires `Idempotency-Key`; the same key replays the first answer for 24 hours.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"charge_id\": \"chg_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"amount_cents\": 2900,\n    \"reason\": \"requested_by_customer\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a refund",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/refunds/:refund",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "refunds",
                                ":refund"
                            ]
                        },
                        "description": "Scope: `v1.charges.read`."
                    }
                }
            ]
        },
        {
            "name": "Payment methods",
            "description": "Saved cards: list, inspect and remove.",
            "item": [
                {
                    "name": "List saved cards",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/payment-methods",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "payment-methods"
                            ]
                        },
                        "description": "Lists your saved cards as summaries. The next page is in the `Link` header.\n\nSort keys: `created_at`, `brand`, `last4`, `exp_year` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.payment_methods.read`."
                    }
                },
                {
                    "name": "Get a saved card",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/payment-methods/:paymentMethod",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "payment-methods",
                                ":paymentMethod"
                            ]
                        },
                        "description": "Scope: `v1.payment_methods.read`."
                    }
                },
                {
                    "name": "Delete a saved card",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/payment-methods/:paymentMethod",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "payment-methods",
                                ":paymentMethod"
                            ]
                        },
                        "description": "Removes a saved card. It can no longer be charged.\n\nScope: `v1.payment_methods.write`."
                    }
                }
            ]
        },
        {
            "name": "Subscriptions",
            "description": "Recurring billing: plan changes, pause and resume, past due, cancellation.",
            "item": [
                {
                    "name": "List subscriptions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `status`, `amount_cents`, `current_period_end`, `next_charge_at`, `trial_end`, `cancelled_at`, `buyer_email` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.subscriptions.read`."
                    }
                },
                {
                    "name": "Get a subscription",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription"
                            ]
                        },
                        "description": "Scope: `v1.subscriptions.read`."
                    }
                },
                {
                    "name": "Cancel a subscription",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/cancel",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "cancel"
                            ]
                        },
                        "description": "Stops future billing: at the end of the paid period unless `immediately` is sent.\n\nScope: `v1.subscriptions.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"immediately\": false,\n    \"reason\": \"requested_by_customer\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Request a plan change",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/change-plan",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "change-plan"
                            ]
                        },
                        "description": "Asks the buyer to confirm moving the subscription, of either billing mode, to another plan from its next period, with no proration. Creates the hosted plan-change confirmation and emails the buyer its link; the plan changes only once the buyer accepts.\n\nScope: `v1.subscriptions.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"price_id\": \"prc_01HZX5Y3V8N2K7QJ4R9T6B3M1C\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Charge a subscription",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/charge",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "charge"
                            ]
                        },
                        "description": "Charges a `merchant_managed` subscription's stored card at its price for the next period.\n\nScope: `v1.subscriptions.write`.\n\nRequires `Idempotency-Key`; the same key replays the first answer for 24 hours."
                    }
                },
                {
                    "name": "Pause a subscription",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/pause",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "pause"
                            ]
                        },
                        "description": "Pauses a `tenant_managed` subscription at the end of its paid period. Calling it again changes nothing.\n\nScope: `v1.subscriptions.write`."
                    }
                },
                {
                    "name": "Change a subscription's card",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/payment-method",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "payment-method"
                            ]
                        },
                        "description": "Changes the card a subscription charges.\n\nScope: `v1.subscriptions.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"payment_method_id\": \"pm_01HZX5Y3V8N2K7QJ4R9T6B3M1C\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "List a subscription's periods",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/periods",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "periods"
                            ]
                        },
                        "description": "Lists the periods of a subscription with their dunning attempts.\n\nSort keys: `number`, `period_start`, `due_at`, `state`, `total_cents`, `paid_at` (default `number`).\n\nThe `from`, `to` and `range` filters read `due_at`.\n\nScope: `v1.subscriptions.read`."
                    }
                },
                {
                    "name": "Create a plan-change confirmation",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/plan-change-confirmations",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "plan-change-confirmations"
                            ]
                        },
                        "description": "Creates the hosted 24-hour plan-change confirmation the buyer accepts, for any billing mode. It expires the open ones and emails the buyer the link; nothing is charged.\n\nScope: `v1.subscriptions.write`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"price_id\": \"prc_01HZX5Y3V8N2K7QJ4R9T6B3M1C\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Resume a subscription",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/resume",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "resume"
                            ]
                        },
                        "description": "Before `pause_at`, cancels the scheduled pause. Once paused, charges now and starts a new period from today.\n\nScope: `v1.subscriptions.write`.\n\nRequires `Idempotency-Key`; the same key replays the first answer for 24 hours."
                    }
                },
                {
                    "name": "Create an update-card link",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/subscriptions/:subscription/update-card-links",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "subscriptions",
                                ":subscription",
                                "update-card-links"
                            ]
                        },
                        "description": "Open the returned `url` for the buyer at once: it lives 10 minutes and opens the card form once, with no sign-in. Each call creates a new link, so no `Idempotency-Key` is used. Answers 422 `validation` for a canceled subscription and 404 `not_found`.\n\nScope: `v1.subscriptions.write`."
                    }
                }
            ]
        },
        {
            "name": "Balance and payouts",
            "description": "Your balance, balance transactions and what each payout settled.",
            "item": [
                {
                    "name": "Get your balance",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/balance",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "balance"
                            ]
                        },
                        "description": "Returns your balance: pending, available, reserve, on hold, in transit, paid out, and the next payout estimate.\n\nScope: `v1.balance.read`."
                    }
                },
                {
                    "name": "Get the balance summary",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/reports/balance-summary",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "reports",
                                "balance-summary"
                            ]
                        },
                        "description": "Returns the balance summary for a period: starting balance, activity per category, payouts and ending balance. Starting + activity - payouts = ending.\n\nScope: `v1.reports.read`."
                    }
                },
                {
                    "name": "List balance transactions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/reports/balance-transactions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "reports",
                                "balance-transactions"
                            ]
                        },
                        "description": "One row per movement of your balance with gross, tax, fee, reserve and net on the row, newest first.\n\nSort keys: `occurred_at`, `available_on`, `available_at`, `gross_cents`, `net_cents`, `category`, `merchant_id` (default `-occurred_at`).\n\nThe `from`, `to` and `range` filters read `occurred_at`.\n\nScope: `v1.reports.read`."
                    }
                },
                {
                    "name": "Export balance transactions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/reports/balance-transactions/export",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "reports",
                                "balance-transactions",
                                "export"
                            ]
                        },
                        "description": "Returns balance transactions as CSV, with the same filters and sort as the list and the `columns[]` you choose. Money is in integer cents.\n\nScope: `v1.reports.read`."
                    }
                },
                {
                    "name": "Get the finance report",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/reports/finance",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "reports",
                                "finance"
                            ]
                        },
                        "description": "Returns orders, gross, refunds, chargebacks, fees and reserve per period, store or card brand, with the totals. Money is in integer cents, rates in basis points.\n\nScope: `v1.reports.read`."
                    }
                },
                {
                    "name": "Export the finance report",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/reports/finance/export",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "reports",
                                "finance",
                                "export"
                            ]
                        },
                        "description": "Returns the finance report as CSV, with the same filters and the `columns[]` you choose. Money is in integer cents.\n\nScope: `v1.reports.read`."
                    }
                },
                {
                    "name": "List a payout's transactions",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/reports/payouts/:payout/transactions",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "reports",
                                "payouts",
                                ":payout",
                                "transactions"
                            ]
                        },
                        "description": "Lists the balance transactions a payout paid out. Their nets sum to the payout.\n\nScope: `v1.reports.read`."
                    }
                }
            ]
        },
        {
            "name": "Disputes",
            "description": "Chargebacks and retrievals opened against your charges (read-only).",
            "item": [
                {
                    "name": "List disputes",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/disputes",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "disputes"
                            ]
                        },
                        "description": "Sort keys: `opened_at`, `evidence_due_at`, `closed_at`, `amount_cents`, `fee_cents`, `status`, `source`, `reason_code`, `merchant_id` (default `-opened_at`).\n\nThe `from`, `to` and `range` filters read `opened_at`.\n\nScope: `v1.disputes.read`."
                    }
                },
                {
                    "name": "Get a dispute",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/disputes/:dispute",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "disputes",
                                ":dispute"
                            ]
                        },
                        "description": "Scope: `v1.disputes.read`."
                    }
                }
            ]
        },
        {
            "name": "Webhook endpoints",
            "description": "Where events are delivered, the signing secret, deliveries and replays.",
            "item": [
                {
                    "name": "List webhook endpoints",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `url`, `description`, `consecutive_failures`, `disabled_at` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.webhook_endpoints.manage`."
                    }
                },
                {
                    "name": "Create a webhook endpoint",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints"
                            ]
                        },
                        "description": "Registers an endpoint. The signing secret is returned once.\n\nScope: `v1.webhook_endpoints.manage`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"store_id\": \"sto_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"url\": \"https://shop.example.com/webhooks\",\n    \"events\": [\n        \"order.paid\",\n        \"refund.issued\"\n    ],\n    \"description\": \"One-line description.\",\n    \"merchant_id\": \"mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Get a webhook endpoint",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint"
                            ]
                        },
                        "description": "Scope: `v1.webhook_endpoints.manage`."
                    }
                },
                {
                    "name": "Update a webhook endpoint",
                    "request": {
                        "method": "PATCH",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint"
                            ]
                        },
                        "description": "Changes the events, description or url.\n\nScope: `v1.webhook_endpoints.manage`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"store_id\": \"sto_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"url\": \"https://shop.example.com/webhooks\",\n    \"events\": [\n        \"order.paid\",\n        \"refund.issued\"\n    ],\n    \"description\": \"One-line description.\",\n    \"merchant_id\": \"mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Delete a webhook endpoint",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint"
                            ]
                        },
                        "description": "Scope: `v1.webhook_endpoints.manage`."
                    }
                },
                {
                    "name": "List an endpoint's deliveries",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint/deliveries",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint",
                                "deliveries"
                            ]
                        },
                        "description": "Sort keys: `created_at`, `event_type`, `status`, `attempts`, `http_status`, `last_attempted_at`, `next_attempt_at`, `delivered_at` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.webhook_endpoints.manage`."
                    }
                },
                {
                    "name": "Replay deliveries in a window",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint/deliveries/replay",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint",
                                "deliveries",
                                "replay"
                            ]
                        },
                        "description": "Re-queues every dead or failed delivery of the endpoint created between from and to (oldest first, up to 10,000 per call; truncated says there were more). Each replay keeps the original event id.\n\nScope: `v1.webhook_endpoints.manage`.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"from\": \"2026-10-21T00:00:00.000Z\",\n    \"to\": \"2026-10-22T00:00:00.000Z\",\n    \"event_types\": [\n        \"order.paid\"\n    ]\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Replay a delivery",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint/deliveries/:delivery/replay",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint",
                                "deliveries",
                                ":delivery",
                                "replay"
                            ]
                        },
                        "description": "Scope: `v1.webhook_endpoints.manage`."
                    }
                },
                {
                    "name": "Send a ping",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint/ping",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint",
                                "ping"
                            ]
                        },
                        "description": "Sends a test delivery to the endpoint.\n\nScope: `v1.webhook_endpoints.manage`."
                    }
                },
                {
                    "name": "Rotate the signing secret",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/webhook-endpoints/:endpoint/rotate-secret",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "webhook-endpoints",
                                ":endpoint",
                                "rotate-secret"
                            ]
                        },
                        "description": "Returns a new secret and re-enables a disabled endpoint.\n\nScope: `v1.webhook_endpoints.manage`."
                    }
                }
            ]
        },
        {
            "name": "Account",
            "description": "Your merchant profile, API keys, users and the terms you accepted.",
            "item": [
                {
                    "name": "List API keys",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/api-keys",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "api-keys"
                            ]
                        },
                        "description": "Revoked keys are listed with `include_revoked`.\n\nSort keys: `created_at`, `last_used_at`, `revoked_at`, `name`, `mode` (default `-created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.api_keys.manage`."
                    }
                },
                {
                    "name": "Create an API key",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            },
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/api-keys",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "api-keys"
                            ]
                        },
                        "description": "The key itself is shown once, in the answer.\n\nScope: `v1.api_keys.manage`.\n\nRequires `Idempotency-Key`; the same key replays the first answer for 24 hours.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"store_id\": \"sto_01HZX5Y3V8N2K7QJ4R9T6B3M1C\",\n    \"name\": \"Server\",\n    \"mode\": \"test\",\n    \"scopes\": [\n        \"v1.orders.read\",\n        \"v1.refunds.write\"\n    ]\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Revoke an API key",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/api-keys/:key",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "api-keys",
                                ":key"
                            ]
                        },
                        "description": "The key stops working within a minute.\n\nScope: `v1.api_keys.manage`."
                    }
                },
                {
                    "name": "Get your merchant profile",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/merchants/me",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "merchants",
                                "me"
                            ]
                        },
                        "description": "Returns your names, status, support email and time zone.\n\nScope: `v1.merchants.read`."
                    }
                },
                {
                    "name": "Get the OpenAPI document",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/openapi.json",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "openapi.json"
                            ]
                        },
                        "description": "Returns the published OpenAPI 3.1 document of this API, with the servers filled for your account. Any valid key may call it. The same document the docs host serves at `/openapi.json`. SDKs compare `info.version` and `info.x-kit-fingerprint` with the spec they were generated from.\n\nScope: `none`."
                    }
                },
                {
                    "name": "Get the current terms",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/terms",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "terms"
                            ]
                        },
                        "description": "Returns the current terms and merchant agreement.\n\nScope: `v1.terms.read`."
                    }
                },
                {
                    "name": "List users",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/users",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "users"
                            ]
                        },
                        "description": "Lists the users of your merchant account and their roles.\n\nSort keys: `created_at`, `name`, `email`, `status`, `role`, `last_login_at` (default `created_at`).\n\nThe `from`, `to` and `range` filters read `created_at`.\n\nScope: `v1.users.read`."
                    }
                },
                {
                    "name": "Ask the assistant",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/v1/ai/ask",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "v1",
                                "ai",
                                "ask"
                            ]
                        },
                        "description": "The assistant reads through the v1 operations your key's other scopes allow and answers with its sources. Answers are JSON-shaped prose; the call is kept in your tenant's audit with a redacted transcript. Refused with `ai_disabled` when the tenant switched the assistant off, `ai_rate_limited` (Retry-After) past the per-key rate, `ai_budget_exhausted` once the tenant's monthly token budget is used up.\n\nScope: `v1.ai.use`."
                    }
                }
            ]
        }
    ]
}
