{
  "openapi": "3.1.0",
  "info": {
    "title": "Freeport Seller API",
    "version": "2026-09-09",
    "description": "One API for every lane and every kind of seller software.\n\nSend your key as `Authorization: Bearer fp_live_…`. Money is a decimal string in the row's currency, ids are prefixed ULIDs, times are ISO 8601 UTC. Every response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a 429 carries `Retry-After`. Errors are `{ \"error\": { \"code\", \"message\", \"requestId\" } }`."
  },
  "servers": [
    {
      "url": "https://api.freeport.gg"
    }
  ],
  "tags": [
    {
      "name": "Meta",
      "description": "The document, and the key looking at it."
    },
    {
      "name": "Account",
      "description": "The seller behind the key."
    },
    {
      "name": "Catalog",
      "description": "Games, lanes, realms and packages, by id and slug."
    },
    {
      "name": "Listings",
      "description": "Your stock on the shelf."
    },
    {
      "name": "Orders",
      "description": "The order feed and the three moves a seller makes."
    },
    {
      "name": "Chat",
      "description": "The thread with the buyer."
    },
    {
      "name": "Disputes",
      "description": "A dispute, answered and settled from your own software. Alone you can only give up your own side: refund in full. Anything between takes both of you."
    },
    {
      "name": "Boosting",
      "description": "Your price curves on the services the platform standardises."
    },
    {
      "name": "Stock syncs",
      "description": "A whole sheet of stock, landed as one decision."
    },
    {
      "name": "Webhooks",
      "description": "Where events go, signed, retried, logged."
    },
    {
      "name": "Sandbox",
      "description": "The synthetic buyer, on the sandbox only."
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "fp_live_… on production, fp_test_… on the sandbox"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable, snake_case. What a client branches on."
              },
              "message": {
                "type": "string"
              },
              "requestId": {
                "type": "string",
                "description": "Quote this when asking for help."
              },
              "details": {
                "description": "Detail a client can act on, where there is any: field-level detail on a 400, and on a 409 that refuses something the order’s state no longer allows (`illegal_transition`, `order_being_accepted`, `order_not_open`, `nothing_to_dispute`, and `no_open_dispute` once the order has left `disputed`) an object `{ \"state\": \"…\" }` naming the state the order is in. Read the order again and act on that."
              }
            },
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "SellingState": {
        "type": "object",
        "properties": {
          "paused": {
            "type": "boolean",
            "description": "True while the platform is offering nothing of yours to buyers."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_orders",
              "declines",
              "order_limit",
              "sales_limit"
            ]
          },
          "resume_after": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "paused",
          "reason",
          "resume_after"
        ],
        "additionalProperties": false,
        "description": "The platform’s own switch over everything you sell, beside `holiday_mode`, which is yours. `missed_orders`: paid orders ran out without an answer, and a person resumes from the seller dashboard, not before `resume_after`; a key cannot. `declines`: you declined a burst of paid orders (three inside 24 hours, unless the seller standards say otherwise), the account is flagged for our review, and a person resumes from the seller dashboard the same way. `sales_limit`: your account is new, and its orders over the last thirty days have come to what a new account may sell; it lifts by itself as those orders pass thirty days and as your account builds a record, or when we review it. `order_limit` was this limit on open orders before it became a category’s: it is now in `selling_by_lane`, and an account paused for it before then is returned within a minute. `account.selling_changed` carries the same facts when they change."
      },
      "LaneSelling": {
        "type": "object",
        "properties": {
          "paused": {
            "type": "boolean",
            "description": "True while the platform is offering nothing of yours in this category."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "order_limit"
            ]
          }
        },
        "required": [
          "paused",
          "reason"
        ],
        "additionalProperties": false,
        "description": "The platform’s own switch over one category. `order_limit`: you are restricted in this category and have as many of its orders open as you may; it lifts by itself when one is delivered, and your other categories are not affected. `account.lane_selling_changed` carries the same facts, with the category, when they change. A pause of the whole account is `selling`, and is not repeated here."
      },
      "Ping": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "environment": {
            "type": "string",
            "enum": [
              "live",
              "test"
            ]
          },
          "server_time": {
            "type": "string",
            "format": "date-time"
          },
          "key": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "label": {
                "type": "string"
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "catalog:read",
                    "listings:read",
                    "listings:write",
                    "orders:read",
                    "orders:write",
                    "disputes:read",
                    "disputes:write",
                    "chat:read",
                    "chat:write",
                    "account:read",
                    "account:write",
                    "payouts:read",
                    "webhooks:manage"
                  ]
                }
              },
              "ip_allowlist": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "expires_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "created_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "id",
              "label",
              "scopes",
              "ip_allowlist",
              "expires_at",
              "created_at"
            ],
            "additionalProperties": false
          },
          "seller": {
            "type": "object",
            "properties": {
              "handle": {
                "type": "string"
              },
              "tier": {
                "type": "string",
                "enum": [
                  "new",
                  "standard",
                  "trusted"
                ]
              },
              "trading_status": {
                "type": "string"
              },
              "holiday_mode": {
                "type": "boolean"
              },
              "selling": {
                "$ref": "#/components/schemas/SellingState"
              }
            },
            "required": [
              "handle",
              "tier",
              "trading_status",
              "holiday_mode",
              "selling"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "reads_per_minute": {
                "type": "integer"
              },
              "writes_per_minute": {
                "type": "integer"
              },
              "bulk_per_minute": {
                "type": "integer"
              },
              "chat_per_minute": {
                "type": "integer"
              }
            },
            "required": [
              "reads_per_minute",
              "writes_per_minute",
              "bulk_per_minute",
              "chat_per_minute"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "ok",
          "environment",
          "server_time",
          "key",
          "seller",
          "limits"
        ],
        "additionalProperties": false
      },
      "Me": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "handle": {
            "type": "string"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "rank": {
            "type": "string",
            "enum": [
              "skiff",
              "sloop",
              "brigantine",
              "frigate",
              "galleon",
              "flagship"
            ]
          },
          "rank_level": {
            "type": "integer",
            "description": "1 to 6, lowest first. The rank this month’s sales hold, and what a sale costs."
          },
          "currency": {
            "type": "string",
            "description": "The currency your account is paid in: your listings are priced in it, and `month_sales` is in it."
          },
          "month_sales": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "tier": {
            "type": "string",
            "enum": [
              "new",
              "standard",
              "trusted"
            ]
          },
          "trading_status": {
            "type": "string",
            "description": "`active`, or `suspended`: reads keep working, writes that start something are refused."
          },
          "holiday_mode": {
            "type": "boolean"
          },
          "selling": {
            "$ref": "#/components/schemas/SellingState"
          },
          "selling_by_lane": {
            "type": "object",
            "properties": {
              "currency": {
                "$ref": "#/components/schemas/LaneSelling"
              },
              "item": {
                "$ref": "#/components/schemas/LaneSelling"
              },
              "account": {
                "$ref": "#/components/schemas/LaneSelling"
              },
              "service": {
                "$ref": "#/components/schemas/LaneSelling"
              },
              "topup": {
                "$ref": "#/components/schemas/LaneSelling"
              },
              "giftcard": {
                "$ref": "#/components/schemas/LaneSelling"
              }
            },
            "required": [
              "currency",
              "item",
              "account",
              "service",
              "topup",
              "giftcard"
            ],
            "additionalProperties": false,
            "description": "The platform’s own switch over each category, by category."
          },
          "reliability": {
            "type": "string",
            "enum": [
              "good",
              "at_risk",
              "restricted"
            ],
            "description": "The worst that your record of answering and delivering paid orders holds you to in any category: see `reliability_by_lane`. The figures and the orders behind them are on the seller dashboard."
          },
          "reliability_by_lane": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string",
                "enum": [
                  "good",
                  "at_risk",
                  "restricted"
                ]
              },
              "item": {
                "type": "string",
                "enum": [
                  "good",
                  "at_risk",
                  "restricted"
                ]
              },
              "account": {
                "type": "string",
                "enum": [
                  "good",
                  "at_risk",
                  "restricted"
                ]
              },
              "service": {
                "type": "string",
                "enum": [
                  "good",
                  "at_risk",
                  "restricted"
                ]
              },
              "topup": {
                "type": "string",
                "enum": [
                  "good",
                  "at_risk",
                  "restricted"
                ]
              },
              "giftcard": {
                "type": "string",
                "enum": [
                  "good",
                  "at_risk",
                  "restricted"
                ]
              }
            },
            "required": [
              "currency",
              "item",
              "account",
              "service",
              "topup",
              "giftcard"
            ],
            "additionalProperties": false,
            "description": "What your record holds you to in each category, judged on that category’s orders alone. `restricted` in a category limits how many of its orders you may have open at once and refuses new listings there with `selling_restricted`, until its figures recover; a restriction in any category also stops your rank rising."
          },
          "presence": {
            "type": "string",
            "enum": [
              "online",
              "away",
              "offline"
            ]
          },
          "payout_hold_days": {
            "type": "integer",
            "description": "The days your track record asks a sale to wait before its proceeds can be withdrawn. A category can ask for longer: see `payout_holds`."
          },
          "payout_holds": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "integer"
              },
              "item": {
                "type": "integer"
              },
              "account": {
                "type": "integer"
              },
              "service": {
                "type": "integer"
              },
              "topup": {
                "type": "integer"
              },
              "giftcard": {
                "type": "integer"
              }
            },
            "required": [],
            "additionalProperties": false,
            "description": "What a sale completing today waits in each category, in days: the longer of `payout_hold_days` and the category’s own. A category that is not open for selling is left out. An order already completed keeps the date it was given."
          },
          "qualifying_orders": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "handle",
          "display_name",
          "rank",
          "rank_level",
          "currency",
          "month_sales",
          "tier",
          "trading_status",
          "holiday_mode",
          "selling",
          "selling_by_lane",
          "reliability",
          "reliability_by_lane",
          "presence",
          "payout_hold_days",
          "payout_holds",
          "qualifying_orders"
        ],
        "additionalProperties": false
      },
      "Balance": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "available": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "pending": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "payout_hold_days": {
            "type": "integer",
            "description": "The days your track record asks a sale to wait. What is pending is released order by order, each on the `payout.release_at` of its own order."
          }
        },
        "required": [
          "currency",
          "available",
          "pending",
          "payout_hold_days"
        ],
        "additionalProperties": false
      },
      "Withdrawal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "state": {
            "type": "string",
            "enum": [
              "requested",
              "approved",
              "sent",
              "paid",
              "returned",
              "rejected",
              "failed"
            ],
            "description": "`requested`: waiting for a person to review it. `approved`: checked and cleared, being sent. `sent`: on its way, `provider_ref` holds the reference; final for a withdrawal paid by hand. `paid`: in your bank account. `returned`: your bank sent it back, and the money is back in your balance. `rejected`: declined, and the money is back in your balance. `failed`: it could not be sent, and the money is back in your balance."
          },
          "speed": {
            "type": "string",
            "enum": [
              "batch",
              "express"
            ],
            "description": "`batch` is a standard withdrawal, approved and sent every business day once its money is past the payout hold. `express` is sent sooner, and only sellers may ask for one."
          },
          "amount": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What was asked for, and what left your available balance when the request was made. A withdrawal to your bank account is paid in full and costs nothing; one paid by hand has its fee taken out of it. `net` is what you receive."
          },
          "fee": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What the withdrawal cost: nothing for one to your bank account, which the payout fee on your sales pays for; for one paid by hand, what the published fee schedule priced its speed at when it was asked for (the fees page lists the prices). 0.00 on a batch withdrawal asked for before 15 October 2026, when the batch was free."
          },
          "net": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What is paid to you: all of `amount` for a withdrawal to your bank account, `amount` less `fee` for one paid by hand."
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "destination_hint": {
            "type": "string",
            "description": "Where it was sent, masked as the Payouts page masks it. The full address is never returned by the API."
          },
          "rail": {
            "type": "string",
            "enum": [
              "bank",
              "skrill"
            ],
            "description": "How it is paid: `bank`, to your bank account; `skrill`, by hand."
          },
          "requested_at": {
            "type": "string",
            "format": "date-time"
          },
          "state_updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When `state` last changed."
          },
          "provider_ref": {
            "type": [
              "string",
              "null"
            ],
            "description": "The payment provider’s reference, once it is sent. Null until then."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sentence shown beside the withdrawal on the Payouts page when it was rejected or failed. Null otherwise."
          },
          "filed_for": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unwithdrawn",
              "closing"
            ],
            "description": "Null where you asked for it. `unwithdrawn`: Freeport filed it for sales you had not withdrawn 75 days after they were paid. `closing`: Freeport filed it before your account was closed."
          }
        },
        "required": [
          "id",
          "state",
          "speed",
          "amount",
          "fee",
          "net",
          "currency",
          "destination_hint",
          "rail",
          "requested_at",
          "state_updated_at",
          "provider_ref",
          "reason",
          "filed_for"
        ],
        "additionalProperties": false
      },
      "BalanceTransaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ledger entry this line is.",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "type": {
            "type": "string",
            "description": "The ledger posting this entry belongs to, by the kind the ledger records it under. Known kinds: `order.completed` (a sale credited, pending), `order.dispute_completed` (a sale a dispute ended for you), `order.dispute_split` (your share of a split dispute), `payout.hold_released` (a sale's hold ended: one line out of pending, one into available), `payout.requested` (a withdrawal asked for), `payout.rejected` and `payout.failed` (its money back), `payout.returned` (your bank sent it back, and the money is back in your balance), `refund.seller_fee` (the refund fee you carry when a sale is refunded after you accepted it, taken from your available balance), `payout.topped_up` (Freeport's own money added so a withdrawal it filed reaches the smallest payout your bank can be sent), `chargeback.sale_held` (a completed sale's money held while the buyer's bank disputes its payment, out of pending, available or both), `chargeback.sale_released` (that money back where it came from, once the bank decides for you or Freeport carries the loss), `chargeback.loss_freeport` (your part of an order the bank's chargeback ended, yours again as a sale's money, pending, when Freeport carries the loss), `chargeback.loss_undone` (a loss placed on you undone: what it took that never left your balance, available again), `chargeback.given_back` (the same: what it took that had left your balance, sent back and available), `chargeback.seller_fee` (the payment provider's fee you carry on an order a chargeback ended, taken from your available balance), `affiliate.commission_accrued` and `affiliate.hold_released` (a partner's commission, on lines from before 16 October 2026: since then commissions are a balance of their own and appear in none of these lines). A new kind is added here as the ledger gains one; a client should show one it does not know rather than fail."
          },
          "amount": {
            "type": "string",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "Gross amount: `net` plus `fee`. A sale before the commission and the payout fee; a withdrawal as sent, before any fee taken from it."
          },
          "fee": {
            "type": "string",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The fee assessed in this posting, positive when charged. A sale's commission as the order kept it (a coupon already off), its payout fee, and any fees you owed that the sale paid; a withdrawal's fee taken from your balance, negative on the line that gives it back (a withdrawal to your bank account carries none). 0.00 where none was assessed, and on a dispute split, which stores none."
          },
          "net": {
            "type": "string",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The impact on your balance: positive adds to it, negative takes from it. Summing `net` over every line is your available plus your pending balance, `GET /v1/me/balance`."
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "available"
            ],
            "description": "`pending` for money still inside the payout hold, `available` for money you can withdraw."
          },
          "available_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the money becomes yours to withdraw: a pending sale's release date, and the line's own moment for money that is available. Null where no date was fixed."
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "description": "When the ledger recorded it."
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "What this line is for: the order or the withdrawal, or the refund's or the chargeback's own id on a line posted under it (`refund.seller_fee`, `chargeback.seller_fee`, `chargeback.loss_undone`, `chargeback.given_back`). Null for a partner's commission, whose order is somebody else's purchase."
          }
        },
        "required": [
          "id",
          "type",
          "amount",
          "fee",
          "net",
          "currency",
          "status",
          "available_on",
          "created",
          "source"
        ],
        "additionalProperties": false
      },
      "FeeQuote": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "category": {
            "type": "string"
          },
          "subtotal": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "buyer_fee": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "buyer_total": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "seller_fee": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "seller_fee_bps": {
            "type": "integer",
            "description": "The rate charged at the key owner’s rank."
          },
          "seller_rank": {
            "type": "string",
            "enum": [
              "skiff",
              "sloop",
              "brigantine",
              "frigate",
              "galleon",
              "flagship"
            ]
          },
          "payout_fee": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "The payout fee on the price, taken with your commission, which makes your withdrawals to your bank free."
          },
          "payout_fee_bps": {
            "type": "integer",
            "description": "The payout fee’s rate, the same at every rank."
          },
          "reserve": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "seller_net": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What a sale at this price leaves you: the price less your commission and the payout fee."
          }
        },
        "required": [
          "currency",
          "category",
          "subtotal",
          "buyer_fee",
          "buyer_total",
          "seller_fee",
          "seller_fee_bps",
          "seller_rank",
          "payout_fee",
          "payout_fee_bps",
          "reserve",
          "seller_net"
        ],
        "additionalProperties": false
      },
      "Game": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "platform": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "platform",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "GameDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "platform": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "A prefixed ULID",
                  "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                },
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "currency",
                    "item",
                    "account",
                    "service",
                    "topup",
                    "giftcard"
                  ]
                },
                "open": {
                  "type": "boolean",
                  "description": "Whether the lane takes listings today. A closed lane stays in the catalog so a crosswalk does not shift when it opens; creating a listing in it, putting one back on sale or stocking it is refused with `lane_closed`."
                },
                "vocabulary": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "options": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "takes_number": {
                        "type": "boolean",
                        "description": "Whether the attribute is a count (a level, a number of skins) that a listing gives as the exact number in digits, such as \"7\". Buyers filter it by the option whose range covers it (\"5-9\"), and the listing shows the number. One of its options is taken too."
                      }
                    },
                    "required": [
                      "key",
                      "label",
                      "options",
                      "takes_number"
                    ],
                    "additionalProperties": false
                  },
                  "description": "The attributes listings in this lane are described by, each with the values it takes. A currency lane in a game with delivery methods lists them under deliveryMethods; that one is required on a listing there and takes one or more of its options joined with \", \"."
                },
                "packages": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "amount": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "unit": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "region": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "popular": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "slug",
                      "label",
                      "amount",
                      "unit",
                      "region",
                      "popular"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "slug",
                "name",
                "kind",
                "open",
                "vocabulary",
                "packages"
              ],
              "additionalProperties": false
            }
          },
          "servers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "A prefixed ULID",
                  "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                },
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "region": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "faction": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "attributes": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "slug",
                "name",
                "region",
                "faction",
                "attributes"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "platform",
          "updated_at",
          "categories",
          "servers"
        ],
        "additionalProperties": false
      },
      "Candidate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "score"
        ],
        "additionalProperties": false
      },
      "Resolution": {
        "type": "object",
        "properties": {
          "game": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            }
          },
          "category": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            }
          },
          "server": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Candidate"
            }
          }
        },
        "required": [
          "game",
          "category",
          "server"
        ],
        "additionalProperties": false
      },
      "Tier": {
        "type": "object",
        "properties": {
          "min_qty": {
            "type": "integer",
            "format": "int64",
            "description": "From this order quantity up, in units."
          },
          "price": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          }
        },
        "required": [
          "min_qty",
          "price"
        ],
        "additionalProperties": false
      },
      "CatalogChanges": {
        "type": "object",
        "properties": {
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "game",
                    "category",
                    "server",
                    "package"
                  ]
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "created",
                    "updated"
                  ]
                },
                "id": {
                  "type": "string",
                  "description": "A prefixed ULID",
                  "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                },
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "game_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "A prefixed ULID",
                  "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "type",
                "action",
                "id",
                "slug",
                "name",
                "game_id",
                "updated_at"
              ],
              "additionalProperties": false
            }
          },
          "next_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "changes",
          "next_since",
          "next_cursor"
        ],
        "additionalProperties": false
      },
      "Listing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "external_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "active",
              "paused",
              "removed"
            ]
          },
          "taken_down": {
            "type": "boolean"
          },
          "game": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "name"
            ],
            "additionalProperties": false
          },
          "category": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "name",
              "kind"
            ],
            "additionalProperties": false
          },
          "server": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "faction": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "slug",
              "name",
              "region",
              "faction"
            ],
            "additionalProperties": false
          },
          "package": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "slug": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "label"
            ],
            "additionalProperties": false
          },
          "path": {
            "type": "string",
            "description": "The catalog page the listing appears on."
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tier"
            }
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "price_per_qty": {
            "type": "integer",
            "format": "int64",
            "description": "How many units the price buys: 1000 gold, a million, a billion. The batch carries the precision a price in whole cents cannot."
          },
          "unit_label": {
            "type": "string"
          },
          "min_qty": {
            "type": "integer",
            "format": "int64"
          },
          "max_qty": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64"
          },
          "stock_qty": {
            "type": "integer",
            "format": "int64"
          },
          "low_stock_alert_qty": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64"
          },
          "delivery_eta_minutes": {
            "type": "integer"
          },
          "attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "external_id",
          "status",
          "taken_down",
          "game",
          "category",
          "server",
          "package",
          "path",
          "title",
          "description",
          "price",
          "tiers",
          "currency",
          "price_per_qty",
          "unit_label",
          "min_qty",
          "max_qty",
          "stock_qty",
          "low_stock_alert_qty",
          "delivery_eta_minutes",
          "attributes",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "Order": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "state": {
            "type": "string",
            "enum": [
              "paid",
              "accepted",
              "delivering",
              "delivered",
              "disputed",
              "completed",
              "cancelled",
              "expired",
              "refunded",
              "partially_refunded"
            ]
          },
          "state_updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "last_event_seq": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The newest event's seq, so a poller can tell whether the webhooks it holds are behind the order it is looking at."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "listing": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "external_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "external_id",
              "title"
            ],
            "additionalProperties": false
          },
          "boost": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "offer_id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "config": {
                "type": [
                  "object",
                  "null"
                ]
              }
            },
            "required": [
              "offer_id",
              "config"
            ],
            "additionalProperties": false
          },
          "game": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "slug",
              "name"
            ],
            "additionalProperties": false
          },
          "server": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "faction": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "slug",
              "name",
              "faction"
            ],
            "additionalProperties": false
          },
          "category_kind": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "integer",
            "format": "int64"
          },
          "unit_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The listing description as the buyer bought it. Null on an order placed before 2026-10-03."
          },
          "attributes": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "The facts the listing carried when it was bought: an account’s rank, an item’s type. Null on an order placed before 2026-10-03."
          },
          "price_per_qty": {
            "type": "integer",
            "format": "int64"
          },
          "unit_price": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "subtotal": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "The price: what you are paid from."
          },
          "seller_fee": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "Your commission on the price, after any commission coupon of yours."
          },
          "commission_discount": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What a commission coupon of yours took off the commission on this order: zero when none did. The coupon is claimed when the order is paid."
          },
          "payout_fee": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "The payout fee on the price, taken with your commission, which makes your withdrawals to your bank free. No coupon changes it. Zero on an order placed before the payout fee existed."
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "buyer": {
            "type": "object",
            "properties": {
              "handle": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "character_name": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The character to deliver to in the game. Null where the order needs none: an account, a gift card, or a top up that is not handed over in the game."
              },
              "player_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The player ID to load, for a top up loaded by one. As the buyer typed it. Null on every other order."
              },
              "zone_id": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The zone or server number that goes with the player ID, for a top up whose delivery method is UID + Zone ID. Null on every other order."
              }
            },
            "required": [
              "handle",
              "character_name",
              "player_id",
              "zone_id"
            ],
            "additionalProperties": false
          },
          "delivery_methods": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "How the seller offered to hand the currency over, copied from the listing at checkout. The buyer picks one in the order chat. Null when the listing is not currency or its game has no method list."
          },
          "deadlines": {
            "type": "object",
            "properties": {
              "accept_by": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "deliver_by": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "auto_confirm_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "required": [
              "accept_by",
              "deliver_by",
              "auto_confirm_at"
            ],
            "additionalProperties": false
          },
          "payout": {
            "type": "object",
            "properties": {
              "release_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When this order’s proceeds become withdrawable. Decided when the order completes and never brought forward afterwards. Null until then, and on an order that ended without a sale."
              },
              "hold_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The days that date was worked out from: the longer of what your track record and the order’s category asked for on the day it completed."
              }
            },
            "required": [
              "release_at",
              "hold_days"
            ],
            "additionalProperties": false
          },
          "fee_schedule_ids": {
            "type": "object",
            "properties": {
              "seller": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The published schedule row your commission was priced by.",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "payout": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The published schedule row your payout fee was priced by. Null where the standard rate priced it, as on every order placed before the payout fee existed.",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              }
            },
            "required": [
              "seller",
              "payout"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "state",
          "state_updated_at",
          "last_event_seq",
          "created_at",
          "listing",
          "boost",
          "game",
          "server",
          "category_kind",
          "quantity",
          "unit_label",
          "description",
          "attributes",
          "price_per_qty",
          "unit_price",
          "subtotal",
          "seller_fee",
          "commission_discount",
          "payout_fee",
          "currency",
          "buyer",
          "delivery_methods",
          "deadlines",
          "payout",
          "fee_schedule_ids"
        ],
        "additionalProperties": false
      },
      "OrderEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "seq": {
            "type": "integer",
            "description": "Strictly increasing, in one series across every order on the platform rather than per order, so gaps between one order's events are normal; the number a consumer orders by."
          },
          "type": {
            "type": "string"
          },
          "from_state": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "draft",
              "payment_pending",
              "paid",
              "accepted",
              "delivering",
              "delivered",
              "disputed",
              "completed",
              "cancelled",
              "expired",
              "refunded",
              "partially_refunded"
            ]
          },
          "to_state": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "draft",
              "payment_pending",
              "paid",
              "accepted",
              "delivering",
              "delivered",
              "disputed",
              "completed",
              "cancelled",
              "expired",
              "refunded",
              "partially_refunded"
            ]
          },
          "actor": {
            "type": "string",
            "enum": [
              "user",
              "admin",
              "system"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "seq",
          "type",
          "from_state",
          "to_state",
          "actor",
          "created_at"
        ],
        "additionalProperties": false
      },
      "OrderChanges": {
        "type": "object",
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "counts": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "changed",
          "counts"
        ],
        "additionalProperties": false
      },
      "Message": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "author": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string",
                "enum": [
                  "seller",
                  "buyer",
                  "system"
                ]
              },
              "handle": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "role",
              "handle"
            ],
            "additionalProperties": false
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "body",
          "image",
          "author",
          "created_at"
        ],
        "additionalProperties": false
      },
      "MessagePosted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Contact-detection notices, returned to the sender."
            }
          }
        },
        "required": [
          "id",
          "created_at",
          "warnings"
        ],
        "additionalProperties": false
      },
      "DisputeOffer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "by": {
            "type": "string",
            "enum": [
              "buyer",
              "seller"
            ]
          },
          "buyer_refund": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What goes back to the buyer. The seller keeps the rest of the order total, less fees."
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "accepted",
              "declined",
              "withdrawn",
              "superseded",
              "void"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "decided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "by",
          "buyer_refund",
          "note",
          "state",
          "created_at",
          "decided_at"
        ],
        "additionalProperties": false
      },
      "Dispute": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "order_id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "resolved",
              "withdrawn"
            ]
          },
          "reason_code": {
            "type": "string"
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the person who opened it wrote."
          },
          "opened_by": {
            "type": "string",
            "enum": [
              "buyer",
              "seller"
            ]
          },
          "opened_at": {
            "type": "string",
            "format": "date-time"
          },
          "respondent": {
            "type": "string",
            "enum": [
              "buyer",
              "seller"
            ]
          },
          "respond_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the respondent's time to answer ends. A dispute nobody answered says so on the record the person deciding it reads."
          },
          "answered": {
            "type": "boolean",
            "description": "Whether the respondent has said anything or put a figure down. Derived from the record on every read."
          },
          "resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "buyer_refunded",
              "seller_paid",
              "split"
            ]
          },
          "decided_via": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "operator",
              "seller_conceded",
              "buyer_released",
              "settlement",
              "bank"
            ],
            "description": "How it ended: a person at Freeport decided, the seller refunded in full, the buyer released the payment, the two sides agreed a settlement, or the buyer's bank took the payment back."
          },
          "resolution_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "The reason given with the decision."
          },
          "buyer_refund": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What went back to the buyer when the dispute ended: the whole total, nothing, or the share a split or settlement returned. Null while it is open."
          },
          "resolved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "total": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "statements": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "A prefixed ULID",
                  "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                },
                "by": {
                  "type": "string",
                  "enum": [
                    "buyer",
                    "seller"
                  ]
                },
                "body": {
                  "type": "string"
                },
                "links": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "description": "Where the evidence is held: a clip or a screenshot on a known host. Shown as a link, never fetched or embedded."
                  }
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "by",
                "body",
                "links",
                "created_at"
              ],
              "additionalProperties": false
            }
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DisputeOffer"
            }
          },
          "standing_offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DisputeOffer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The offer on the table, or null. At most one is ever open."
          }
        },
        "required": [
          "id",
          "order_id",
          "state",
          "reason_code",
          "detail",
          "opened_by",
          "opened_at",
          "respondent",
          "respond_by",
          "answered",
          "resolution",
          "decided_via",
          "resolution_note",
          "buyer_refund",
          "resolved_at",
          "currency",
          "total",
          "statements",
          "offers",
          "standing_offer"
        ],
        "additionalProperties": false
      },
      "SettlementQuote": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "total": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "buyer_refund": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "seller_net": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "What you keep, after fees."
          },
          "fees": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "The order's own fees, never more than what the seller keeps. A settlement never makes you owe fees on money you gave back."
          }
        },
        "required": [
          "currency",
          "total",
          "buyer_refund",
          "seller_net",
          "fees"
        ],
        "additionalProperties": false
      },
      "Webhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "order.paid",
                "order.accepted",
                "order.delivered",
                "order.completed",
                "order.cancelled",
                "order.refunded",
                "order.disputed",
                "order.dispute_resolved",
                "order.dispute_updated",
                "order.message",
                "listing.low_stock",
                "listing.sold_out",
                "listing.taken_down",
                "listing.reinstated",
                "account.trading_status_changed",
                "account.selling_changed",
                "account.lane_selling_changed",
                "ping"
              ]
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "disabled_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "failing_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "previous_secret_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "While set, deliveries carry a second signature made with the secret before the last rotation."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "url",
          "label",
          "events",
          "status",
          "disabled_reason",
          "failing_since",
          "previous_secret_until",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "WebhookWithSecret": {
        "type": "object",
        "properties": {
          "secret": {
            "type": "string",
            "description": "Shown once. Verify every delivery with it.",
            "example": "whsec_…"
          },
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "events": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "order.paid",
                "order.accepted",
                "order.delivered",
                "order.completed",
                "order.cancelled",
                "order.refunded",
                "order.disputed",
                "order.dispute_resolved",
                "order.dispute_updated",
                "order.message",
                "listing.low_stock",
                "listing.sold_out",
                "listing.taken_down",
                "listing.reinstated",
                "account.trading_status_changed",
                "account.selling_changed",
                "account.lane_selling_changed",
                "ping"
              ]
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "disabled_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "failing_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "previous_secret_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "secret",
          "id",
          "url",
          "label",
          "events",
          "status",
          "disabled_reason",
          "failing_since",
          "previous_secret_until",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "Delivery": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "event_id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "event_type": {
            "type": "string",
            "enum": [
              "order.paid",
              "order.accepted",
              "order.delivered",
              "order.completed",
              "order.cancelled",
              "order.refunded",
              "order.disputed",
              "order.dispute_resolved",
              "order.dispute_updated",
              "order.message",
              "listing.low_stock",
              "listing.sold_out",
              "listing.taken_down",
              "listing.reinstated",
              "account.trading_status_changed",
              "account.selling_changed",
              "account.lane_selling_changed",
              "ping"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "exhausted"
            ]
          },
          "attempts": {
            "type": "integer"
          },
          "next_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "response_status": {
            "type": [
              "integer",
              "null"
            ]
          },
          "response_snippet": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first kilobyte of what your server answered."
          },
          "last_error": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration_ms": {
            "type": [
              "integer",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "event_id",
          "event_type",
          "status",
          "attempts",
          "next_attempt_at",
          "last_attempt_at",
          "response_status",
          "response_snippet",
          "last_error",
          "duration_ms",
          "created_at"
        ],
        "additionalProperties": false
      },
      "Queued": {
        "type": "object",
        "properties": {
          "queued": {
            "type": "boolean"
          }
        },
        "required": [
          "queued"
        ],
        "additionalProperties": false
      },
      "CodeVault": {
        "type": "object",
        "properties": {
          "available": {
            "type": "integer",
            "description": "Unsold, on the shelf. Also the listing stock the vault maintains."
          },
          "delivered": {
            "type": "integer"
          },
          "withdrawn": {
            "type": "integer"
          }
        },
        "required": [
          "available",
          "delivered",
          "withdrawn"
        ],
        "additionalProperties": false
      },
      "StoredLogin": {
        "type": "object",
        "properties": {
          "stored": {
            "type": "boolean"
          },
          "stored_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the newest login stored was written."
          },
          "count": {
            "type": "integer",
            "description": "How many logins are stored. Also the listing stock they maintain."
          }
        },
        "required": [
          "stored",
          "stored_at",
          "count"
        ],
        "additionalProperties": false
      },
      "StoredLoginsAdded": {
        "type": "object",
        "properties": {
          "added": {
            "type": "integer"
          },
          "duplicates": {
            "type": "integer",
            "description": "Accounts already stored on the listing, or named twice in the request."
          },
          "stored": {
            "type": "boolean"
          },
          "stored_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the newest login stored was written."
          },
          "count": {
            "type": "integer"
          }
        },
        "required": [
          "added",
          "duplicates",
          "stored",
          "stored_at",
          "count"
        ],
        "additionalProperties": false
      },
      "CodeVaultAdded": {
        "type": "object",
        "properties": {
          "added": {
            "type": "integer"
          },
          "duplicates": {
            "type": "integer"
          },
          "available": {
            "type": "integer"
          },
          "delivered": {
            "type": "integer"
          },
          "withdrawn": {
            "type": "integer"
          }
        },
        "required": [
          "added",
          "duplicates",
          "available",
          "delivered",
          "withdrawn"
        ],
        "additionalProperties": false
      },
      "CodeVaultWithdrawn": {
        "type": "object",
        "properties": {
          "removed": {
            "type": "integer"
          },
          "available": {
            "type": "integer"
          },
          "delivered": {
            "type": "integer"
          },
          "withdrawn": {
            "type": "integer"
          }
        },
        "required": [
          "removed",
          "available",
          "delivered",
          "withdrawn"
        ],
        "additionalProperties": false
      },
      "BoostOption": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "range",
              "number",
              "choice",
              "flags",
              "ladder"
            ]
          },
          "min": {
            "type": "integer"
          },
          "max": {
            "type": "integer"
          },
          "unit": {
            "type": "string"
          },
          "bands": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "A range or count whose unit price changes along it: the first unit of each stretch, ascending from min. A count of n pays its units as a range from 0 to n would, and its first stretch also covers the units below its start. Priced in `bands` (or `rate_bands` with `rate_by`)."
          },
          "rate_by": {
            "type": "string",
            "description": "The key of a choice option whose chosen value sets this option's unit price. Priced in `rates` (or `rate_bands` with `bands`)."
          },
          "per": {
            "type": "integer",
            "description": "Rates for this option are quoted per this many units."
          },
          "step": {
            "type": "integer",
            "description": "Values move in steps of this many units from min."
          },
          "repeat": {
            "type": "boolean",
            "description": "A count that repeats the whole job: the price of one is multiplied by it, and it has no rate of its own."
          },
          "pricing": {
            "type": "string",
            "enum": [
              "percent",
              "flat"
            ],
            "description": "How a choice, or the extras by default, move the price: basis points (`choice_bps`, `flag_bps`) or money (`choice_prices`, `flag_prices`)."
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "value",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "flags": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "pricing": {
                  "type": "string",
                  "enum": [
                    "percent",
                    "flat"
                  ]
                }
              },
              "required": [
                "value",
                "label"
              ],
              "additionalProperties": false
            }
          },
          "tiers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "ranks": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "value",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "value",
                "label",
                "ranks"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "key",
          "label",
          "type"
        ],
        "additionalProperties": false
      },
      "BoostTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "slug",
              "name"
            ],
            "additionalProperties": false
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BoostOption"
            }
          },
          "offer_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "category",
          "options",
          "offer_id"
        ],
        "additionalProperties": false
      },
      "BoostPricing": {
        "type": "object",
        "properties": {
          "base": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          },
          "per_unit": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "pattern": "^\\d+(\\.\\d+)?$",
              "description": "A decimal string in the row's currency. Never a float."
            },
            "description": "A rate per unit, keyed by a range or number option with no `bands` and no `rate_by`."
          },
          "bands": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "pattern": "^\\d+(\\.\\d+)?$",
                "description": "A decimal string in the row's currency. Never a float."
              }
            },
            "description": "The rate per unit in each stretch of a banded range or count, keyed by the option then the stretch's first unit. A range from 78 to 83 pays units 78 to 82, each at its stretch's rate. A stretch missing here is not for sale."
          },
          "rates": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "pattern": "^\\d+(\\.\\d+)?$",
                "description": "A decimal string in the row's currency. Never a float."
              }
            },
            "description": "The rate per unit by the value chosen on the option named in `rate_by`, keyed by the option then that value. A value missing here is not for sale."
          },
          "rate_bands": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "pattern": "^\\d+(\\.\\d+)?$",
                  "description": "A decimal string in the row's currency. Never a float."
                }
              }
            },
            "description": "Both at once, for a banded range or count with `rate_by`: keyed by the option, then the chosen value, then the stretch's first unit."
          },
          "choice_bps": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "integer"
              }
            },
            "description": "Basis points per chosen value, keyed by a percent choice option then its value."
          },
          "choice_prices": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "pattern": "^\\d+(\\.\\d+)?$",
                "description": "A decimal string in the row's currency. Never a float."
              }
            },
            "description": "Money added per chosen value, keyed by a flat choice option then its value. A value missing here is not for sale."
          },
          "flag_bps": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "Basis points per percent extra offered. An extra missing here is not for sale."
          },
          "flag_prices": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "pattern": "^\\d+(\\.\\d+)?$",
              "description": "A decimal string in the row's currency. Never a float."
            },
            "description": "Money per flat extra offered. An extra missing here is not for sale."
          },
          "ladder": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "pattern": "^\\d+(\\.\\d+)?$",
                "description": "A decimal string in the row's currency. Never a float."
              }
            },
            "description": "The price of each division of a ladder option, keyed by the option then by the rank the step climbs out of (gold_ii is Gold II to Gold I). A climb costs the sum of its divisions. A division missing here is not for sale."
          },
          "not_offered": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Values of a choice option this booster does not take, keyed by the option."
          },
          "min_total": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          }
        },
        "required": [
          "base",
          "per_unit",
          "bands",
          "rates",
          "rate_bands",
          "choice_bps",
          "choice_prices",
          "flag_bps",
          "flag_prices",
          "ladder",
          "not_offered",
          "min_total"
        ],
        "additionalProperties": false
      },
      "BoostOffer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused"
            ]
          },
          "template": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "A prefixed ULID",
                "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
              },
              "name": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "game": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "slug",
                  "name"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "name",
              "category",
              "game"
            ],
            "additionalProperties": false
          },
          "pricing": {
            "$ref": "#/components/schemas/BoostPricing"
          },
          "currency": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "eta_hours": {
            "type": "integer"
          },
          "from_price": {
            "type": "string",
            "pattern": "^\\d+(\\.\\d+)?$",
            "description": "A decimal string in the row's currency. Never a float."
          }
        },
        "required": [
          "id",
          "status",
          "template",
          "pricing",
          "currency",
          "eta_hours",
          "from_price"
        ],
        "additionalProperties": false
      },
      "StockSync": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "mode": {
            "type": "string",
            "enum": [
              "replace",
              "merge"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "committing",
              "committed",
              "expired",
              "failed"
            ]
          },
          "line_count": {
            "type": "integer"
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "created": {
                "type": "integer"
              },
              "updated": {
                "type": "integer"
              },
              "unchanged": {
                "type": "integer"
              },
              "paused": {
                "type": "integer"
              },
              "failed": {
                "type": "integer"
              }
            },
            "required": [
              "created",
              "updated",
              "unchanged",
              "paused",
              "failed"
            ],
            "additionalProperties": false
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "An open sync not committed by then expires."
          },
          "committed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "mode",
          "status",
          "line_count",
          "summary",
          "error",
          "expires_at",
          "committed_at",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      },
      "StagingResult": {
        "type": "object",
        "properties": {
          "external_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "staged",
              "invalid"
            ]
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "external_id",
          "status"
        ],
        "additionalProperties": false
      },
      "Staged": {
        "type": "object",
        "properties": {
          "sync": {
            "$ref": "#/components/schemas/StockSync"
          },
          "staged": {
            "type": "integer"
          },
          "invalid": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StagingResult"
            }
          }
        },
        "required": [
          "sync",
          "staged",
          "invalid",
          "results"
        ],
        "additionalProperties": false
      },
      "SyncLine": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "external_id": {
            "type": "string"
          },
          "listing_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "created",
              "updated",
              "unchanged",
              "paused",
              "failed"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          },
          "line": {
            "type": "object",
            "additionalProperties": true,
            "description": "The line as staged."
          }
        },
        "required": [
          "id",
          "external_id",
          "listing_id",
          "action",
          "error",
          "line"
        ],
        "additionalProperties": false
      },
      "WebhookEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A prefixed ULID",
            "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
          },
          "type": {
            "type": "string",
            "enum": [
              "order.paid",
              "order.accepted",
              "order.delivered",
              "order.completed",
              "order.cancelled",
              "order.refunded",
              "order.disputed",
              "order.dispute_resolved",
              "order.dispute_updated",
              "order.message",
              "listing.low_stock",
              "listing.sold_out",
              "listing.taken_down",
              "listing.reinstated",
              "account.trading_status_changed",
              "account.selling_changed",
              "account.lane_selling_changed",
              "ping"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "api_version": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "description": "What happened. Its fields depend on `type`, and each event publishes its own under `webhooks` in this document: the record the event is about, as its GET route returns it, and the few facts stored when it happened.",
            "additionalProperties": true
          }
        },
        "required": [
          "id",
          "type",
          "created_at",
          "api_version",
          "data"
        ],
        "additionalProperties": false
      },
      "ReplayedWithoutBody": {
        "type": "object",
        "properties": {
          "replayed": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "body_omitted": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "replayed",
          "body_omitted",
          "message"
        ],
        "additionalProperties": false
      }
    }
  },
  "paths": {
    "/v1/sandbox/orders": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Buy from yourself",
        "description": "The synthetic buyer places and pays for an order on one of your listings through the real checkout, so `order.paid` reaches your endpoint by the production path. Then accept and deliver it as you would any order, and drive the buyer from the routes below. Sandbox only.\n\nScope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrders",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "listing_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "character_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80,
                    "pattern": "^(?:\\p{Extended_Pictographic}(?:\\u{FE0F}|\\p{Emoji_Modifier})?(?:\\u200D\\p{Extended_Pictographic}(?:\\u{FE0F}|\\p{Emoji_Modifier})?)+|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2,6}\\u{E007F}|\\p{Script=Arabic}(?:\\u200C\\p{Script=Arabic})+|[\\u094D\\u09CD\\u0A4D\\u0ACD\\u0B4D\\u0BCD\\u0C4D\\u0CCD\\u0D4D\\u0DCA][\\u200C\\u200D]|[^\\p{Cc}\\p{Cf}])*$"
                  },
                  "player_id": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64,
                    "pattern": "^(?:\\p{Extended_Pictographic}(?:\\u{FE0F}|\\p{Emoji_Modifier})?(?:\\u200D\\p{Extended_Pictographic}(?:\\u{FE0F}|\\p{Emoji_Modifier})?)+|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2,6}\\u{E007F}|\\p{Script=Arabic}(?:\\u200C\\p{Script=Arabic})+|[\\u094D\\u09CD\\u0A4D\\u0ACD\\u0B4D\\u0BCD\\u0C4D\\u0CCD\\u0D4D\\u0DCA][\\u200C\\u200D]|[^\\p{Cc}\\p{Cf}])*$"
                  },
                  "zone_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 16,
                    "pattern": "^(?:\\p{Extended_Pictographic}(?:\\u{FE0F}|\\p{Emoji_Modifier})?(?:\\u200D\\p{Extended_Pictographic}(?:\\u{FE0F}|\\p{Emoji_Modifier})?)+|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2,6}\\u{E007F}|\\p{Script=Arabic}(?:\\u200C\\p{Script=Arabic})+|[\\u094D\\u09CD\\u0A4D\\u0ACD\\u0B4D\\u0BCD\\u0C4D\\u0CCD\\u0D4D\\u0DCA][\\u200C\\u200D]|[^\\p{Cc}\\p{Cf}])*$"
                  }
                },
                "required": [
                  "listing_id",
                  "quantity"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The order, paid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/confirm": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer confirms delivery",
        "description": "Scope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdConfirm",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The order, completed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/cancel": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer cancels an order you have not accepted, once 30 minutes have passed since payment, and their held payment is released",
        "description": "Scope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdCancel",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The order, cancelled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer opens a dispute",
        "description": "Scope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDispute",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "reason_code": {
                    "default": "not_delivered",
                    "type": "string",
                    "enum": [
                      "not_delivered",
                      "partially_delivered",
                      "wrong_item",
                      "recalled",
                      "other"
                    ]
                  },
                  "detail": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2000
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The order, disputed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute/statements": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer puts their side on the record",
        "description": "The buyer's half of a dispute lives at your own dispute routes with `/sandbox` in front, so you can rehearse all of one: `order.dispute_updated` reaches your endpoint by the production path. Sandbox only.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDisputeStatements",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "links": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "body"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dispute, as you then read it",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute/offers": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer proposes a settlement",
        "description": "Scope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDisputeOffers",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "buyer_refund": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "buyer_refund"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dispute, the buyer's offer standing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute/offers/{offerId}/accept": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer accepts your offer",
        "description": "Scope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDisputeOffersByOfferIdAccept",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The id of an offer you made."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "buyer_refund": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  }
                },
                "required": [
                  "buyer_refund"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dispute, settled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute/offers/{offerId}/decline": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer declines your offer",
        "description": "Scope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDisputeOffersByOfferIdDecline",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The id of an offer you made."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute, your offer declined",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute/offers/{offerId}/withdraw": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer takes their offer back",
        "description": "Scope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDisputeOffersByOfferIdWithdraw",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The id of the buyer's offer."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute, the buyer's offer withdrawn",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/orders/{id}/dispute/release": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The buyer drops the dispute and releases the payment",
        "description": "The one move that is only ever the buyer's: you are paid as if they had confirmed the delivery. `order.dispute_resolved` and `order.completed` follow.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1SandboxOrdersByIdDisputeRelease",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute, closed in your favour",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/reset": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "x-sandbox-only": true,
        "x-scope": "account:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Wipe your slate",
        "description": "Listings off the shelf, syncs and deliveries gone, the outbox cleared. Keys and endpoints stay; orders stay, because the ledger under them is append-only.\n\nScope `account:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "postV1SandboxReset",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "What went",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "listings_removed": {
                      "type": "integer"
                    },
                    "syncs_deleted": {
                      "type": "integer"
                    },
                    "deliveries_deleted": {
                      "type": "integer"
                    },
                    "events_deleted": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "listings_removed",
                    "syncs_deleted",
                    "deliveries_deleted",
                    "events_deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/openapi.json": {
      "get": {
        "tags": [
          "Meta"
        ],
        "summary": "This document",
        "description": "No key needed.",
        "operationId": "getV1OpenapiJson",
        "security": [],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The OpenAPI document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "An OpenAPI 3.1 document."
                }
              }
            }
          }
        }
      }
    },
    "/v1/ping": {
      "get": {
        "tags": [
          "Meta"
        ],
        "x-rate-limit-bucket": "reads",
        "summary": "Is this key alive, what can it do, where are its limits",
        "description": "Any key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Ping",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The key, the seller and the budgets",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ping"
                }
              }
            }
          },
          "401": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/me/balance": {
      "get": {
        "tags": [
          "Account"
        ],
        "x-scope": "account:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Your balance",
        "description": "Summed from the ledger, never stored: what is spendable now, and what is still held while orders complete and the payout hold runs.\n\nScope `account:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1MeBalance",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The balance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/balance/transactions": {
      "get": {
        "tags": [
          "Account"
        ],
        "x-scope": "payouts:read",
        "x-rate-limit-bucket": "reads",
        "summary": "What moved your balance",
        "description": "Your balance as a list, newest first, in the shape of Stripe's balance transactions: one line to a ledger entry on your available and pending accounts, with `amount`, `fee`, `net`, `status`, `available_on`, `created` and the `source` order or withdrawal. The lines add up to `GET /v1/me/balance`. Read only, and under `payouts:read` with the withdrawals.\n\nScope `payouts:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1BalanceTransactions",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of balance transactions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BalanceTransaction"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/withdrawals": {
      "get": {
        "tags": [
          "Account"
        ],
        "x-scope": "payouts:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Your withdrawals",
        "description": "The same list as the Payouts page, newest first: what you asked for, the fee, what you receive, where it goes (masked) and what became of each request. Read only: a withdrawal is asked for on the Payouts page, never with a key. Needs `payouts:read`, which `full` carries and a key minted before it existed does not.\n\nScope `payouts:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Withdrawals",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of withdrawals",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Withdrawal"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fees/quote": {
      "get": {
        "tags": [
          "Account"
        ],
        "x-rate-limit-bucket": "reads",
        "summary": "What an order would cost",
        "description": "Priced by the same resolver as checkout: the SafeHarbour fee the lane publishes, which the buyer pays, and the seller fee at your own rank, both before any coupon. A buyer’s own coupon can lower the SafeHarbour fee at checkout, and a commission coupon granted to you lowers the seller fee when an order is paid. A tool pricing across marketplaces wants this before it lists, not after the first sale.\n\nAny key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1FeesQuote",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "currency",
                "item",
                "account",
                "service",
                "topup",
                "giftcard"
              ]
            }
          },
          {
            "name": "subtotal",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "GBP",
                "EUR",
                "USD",
                "AUD",
                "CAD",
                "CHF",
                "CZK",
                "DKK",
                "HKD",
                "HUF",
                "JPY",
                "NOK",
                "PLN",
                "RON",
                "SEK",
                "SGD"
              ]
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeeQuote"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "x-scope": "account:read",
        "x-rate-limit-bucket": "reads",
        "summary": "The seller behind the key",
        "description": "Scope `account:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Me",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The seller",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Account"
        ],
        "x-scope": "account:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Holiday mode on or off",
        "description": "Holiday mode hides every listing at once: the switch a farm flips when the deliverers go home.\n\nScope `account:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "patchV1Me",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "holiday_mode": {
                    "type": "boolean"
                  },
                  "presence": {
                    "type": "string",
                    "enum": [
                      "online",
                      "offline"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The seller, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalog/games": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "x-rate-limit-bucket": "reads",
        "x-conditional": true,
        "summary": "Every active game",
        "description": "Any key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1CatalogGames",
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The ETag from the previous answer. A match is a 304 with no body."
          }
        ],
        "responses": {
          "200": {
            "description": "Games, most popular first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Game"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "304": {
            "description": "Unchanged since the ETag you sent"
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalog/games/{slug}": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "x-rate-limit-bucket": "reads",
        "x-conditional": true,
        "summary": "One game: lanes, realms with faction, packages, vocabulary",
        "description": "Any key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1CatalogGamesBySlug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The ETag from the previous answer. A match is a 304 with no body."
          }
        ],
        "responses": {
          "200": {
            "description": "The game",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GameDetail"
                }
              }
            }
          },
          "304": {
            "description": "Unchanged"
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalog/resolve": {
      "post": {
        "tags": [
          "Catalog"
        ],
        "x-rate-limit-bucket": "reads",
        "summary": "Your names to our ids",
        "description": "Ranks games, categories and servers against the names you keep. A named faction is decisive on a realm. Never creates anything.\n\nAny key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "postV1CatalogResolve",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "game": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "category": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "server": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "faction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                },
                "required": [
                  "game"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Up to five candidates each, best first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resolution"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalog/changes": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "x-rate-limit-bucket": "reads",
        "summary": "Games, lanes, realms and packages added or renamed since a moment",
        "description": "Send since for the first page, then the cursor it returns until it is null: the cursor continues the walk exactly, through rows that share one moment. next_since is a moment a later walk can start from without missing a row: it never points inside a group of rows sharing one moment, so that walk may repeat a few rows and cannot skip any.\n\nAny key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1CatalogChanges",
        "parameters": [
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 400
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 200,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Oldest first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogChanges"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings": {
      "get": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Your listings",
        "description": "Scope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Listings",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "active",
                "paused",
                "removed"
              ]
            }
          },
          {
            "name": "game",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "external_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Newest change first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Listing"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Create a listing",
        "description": "Game, category, server and package by our id or our slug. The title is generated when absent. Refused with 403 `payments_not_set_up` until the account’s payments are set up, and with 403 `selling_restricted` in a category the account is restricted in.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1Listings",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "game": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "category": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "server": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "package": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "title": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 120
                  },
                  "tiers": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min_qty": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 1000000000000000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "required": [
                        "min_qty",
                        "price"
                      ]
                    }
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "price": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "GBP",
                      "EUR",
                      "USD",
                      "AUD",
                      "CAD",
                      "CHF",
                      "CZK",
                      "DKK",
                      "HKD",
                      "HUF",
                      "JPY",
                      "NOK",
                      "PLN",
                      "RON",
                      "SEK",
                      "SGD"
                    ]
                  },
                  "unit_label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "price_per_qty": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000
                  },
                  "min_qty": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "max_qty": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "stock_qty": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000000
                  },
                  "low_stock_alert_qty": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_eta_minutes": {
                    "default": 60,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20160
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 80
                    }
                  },
                  "external_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "status": {
                    "default": "active",
                    "type": "string",
                    "enum": [
                      "draft",
                      "active"
                    ]
                  }
                },
                "required": [
                  "game",
                  "category",
                  "price"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/batch": {
      "post": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Up to a thousand lines in one call",
        "description": "The sync engine in merge mode, opened, staged and committed for you. Answers at once with a result per line for the staging; poll the sync for the result per line of the apply.\n\nScope `listings:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "postV1ListingsBatch",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "lines": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "game": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "category": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "server": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "package": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "title": {
                          "type": "string",
                          "minLength": 4,
                          "maxLength": 120
                        },
                        "tiers": {
                          "maxItems": 3,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "min_qty": {
                                "type": "integer",
                                "minimum": 2,
                                "maximum": 1000000000000000
                              },
                              "price": {
                                "type": "string",
                                "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                              }
                            },
                            "required": [
                              "min_qty",
                              "price"
                            ]
                          }
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "GBP",
                            "EUR",
                            "USD",
                            "AUD",
                            "CAD",
                            "CHF",
                            "CZK",
                            "DKK",
                            "HKD",
                            "HUF",
                            "JPY",
                            "NOK",
                            "PLN",
                            "RON",
                            "SEK",
                            "SGD"
                          ]
                        },
                        "unit_label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        },
                        "price_per_qty": {
                          "default": 1,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000
                        },
                        "min_qty": {
                          "default": 1,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000000
                        },
                        "max_qty": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000000
                        },
                        "stock_qty": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000000
                        },
                        "low_stock_alert_qty": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000000000000000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "delivery_eta_minutes": {
                          "default": 60,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 20160
                        },
                        "attributes": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40
                          },
                          "additionalProperties": {
                            "type": "string",
                            "maxLength": 80
                          }
                        },
                        "external_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "status": {
                          "default": "active",
                          "type": "string",
                          "enum": [
                            "draft",
                            "active",
                            "paused"
                          ]
                        }
                      },
                      "required": [
                        "game",
                        "category",
                        "price",
                        "external_id"
                      ]
                    }
                  }
                },
                "required": [
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Staged and committed; the worker applies it",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Staged"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/by-external-id/{externalId}": {
      "put": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Create or replace the whole line by your own id for it",
        "description": "The body is the whole line, as a sheet line is: the state of the listing under this external id is created or replaced (RFC 9110, section 9.3.4), so a cap or an alert left out is cleared. Creates on first sight, replaces after. A listing never moves to another game, category, server or package: that is a new external id. To change only some fields, use `PATCH` on the same path.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "putV1ListingsByExternalIdByExternalId",
        "parameters": [
          {
            "name": "externalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "game": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "category": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "server": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "package": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "title": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 120
                  },
                  "tiers": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min_qty": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 1000000000000000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "required": [
                        "min_qty",
                        "price"
                      ]
                    }
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "price": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "GBP",
                      "EUR",
                      "USD",
                      "AUD",
                      "CAD",
                      "CHF",
                      "CZK",
                      "DKK",
                      "HKD",
                      "HUF",
                      "JPY",
                      "NOK",
                      "PLN",
                      "RON",
                      "SEK",
                      "SGD"
                    ]
                  },
                  "unit_label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "price_per_qty": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000
                  },
                  "min_qty": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "max_qty": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "stock_qty": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000000
                  },
                  "low_stock_alert_qty": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_eta_minutes": {
                    "default": 60,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20160
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 80
                    }
                  },
                  "external_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "status": {
                    "default": "active",
                    "type": "string",
                    "enum": [
                      "draft",
                      "active"
                    ]
                  }
                },
                "required": [
                  "game",
                  "category",
                  "price"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Change some fields by your own id for the line",
        "description": "Changes the fields sent and leaves the rest, exactly as `PATCH /v1/listings/{id}` does, on the listing you keep under this external id. It never creates: an external id that is not yours answers 404 `not_found`, as one that does not exist does. `stock_qty` cannot be `null`: stock is not a field that can be removed, so `null` is refused with 400 `validation_failed` naming it. Leave it out to keep the stock, or send a count.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "patchV1ListingsByExternalIdByExternalId",
        "parameters": [
          {
            "name": "externalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 120
                  },
                  "tiers": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min_qty": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 1000000000000000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "required": [
                        "min_qty",
                        "price"
                      ]
                    }
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "price": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "GBP",
                      "EUR",
                      "USD",
                      "AUD",
                      "CAD",
                      "CHF",
                      "CZK",
                      "DKK",
                      "HKD",
                      "HUF",
                      "JPY",
                      "NOK",
                      "PLN",
                      "RON",
                      "SEK",
                      "SGD"
                    ]
                  },
                  "unit_label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "price_per_qty": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000
                  },
                  "min_qty": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "max_qty": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1000000000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stock_qty": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000000
                  },
                  "low_stock_alert_qty": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_eta_minutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20160
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 80
                    }
                  },
                  "external_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "paused",
                      "removed"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The listing, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/{id}": {
      "get": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "One listing",
        "description": "Scope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1ListingsById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Change price, stock, status or anything else",
        "description": "Changes the fields sent and leaves the rest. `stock_qty` cannot be `null`: stock is not a field that can be removed, so `null` is refused with 400 `validation_failed` naming it. Leave it out to keep the stock, or send a count.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "patchV1ListingsById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 120
                  },
                  "tiers": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min_qty": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 1000000000000000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "required": [
                        "min_qty",
                        "price"
                      ]
                    }
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "price": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "GBP",
                      "EUR",
                      "USD",
                      "AUD",
                      "CAD",
                      "CHF",
                      "CZK",
                      "DKK",
                      "HKD",
                      "HUF",
                      "JPY",
                      "NOK",
                      "PLN",
                      "RON",
                      "SEK",
                      "SGD"
                    ]
                  },
                  "unit_label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "price_per_qty": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000
                  },
                  "min_qty": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000000000000
                  },
                  "max_qty": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1000000000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stock_qty": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000000000000
                  },
                  "low_stock_alert_qty": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1000000000000000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "delivery_eta_minutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20160
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 80
                    }
                  },
                  "external_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "paused",
                      "removed"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The listing, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/{id}/tiers": {
      "put": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Replace the volume ladder",
        "description": "Up to three rungs, each starting above the one before and cheaper than it; the listing's own price is the price at its minimum order. Checkout picks the rung an order's quantity reaches and freezes that unit price on the order. An empty list clears the ladder.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "putV1ListingsByIdTiers",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "tiers": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "min_qty": {
                          "type": "integer",
                          "minimum": 2,
                          "maximum": 1000000000000000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "required": [
                        "min_qty",
                        "price"
                      ]
                    }
                  }
                },
                "required": [
                  "tiers"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The listing, with its ladder",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders": {
      "get": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Your orders, or everything that moved since a moment",
        "description": "Without `updated_since`: newest change first. With it: a feed, oldest first, that you walk forward with the cursor.\n\nScope `orders:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Orders",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "paid",
                "accepted",
                "delivering",
                "delivered",
                "completed",
                "disputed",
                "refunded",
                "partially_refunded",
                "cancelled",
                "expired"
              ]
            }
          },
          {
            "name": "updated_since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of orders",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Order"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/changes": {
      "get": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:read",
        "x-rate-limit-bucket": "reads",
        "x-conditional": true,
        "summary": "Has anything moved",
        "description": "Send back the ETag as If-None-Match. A 304 costs no database work, so poll at the pace in Poll-Interval with a clear conscience.\n\nScope `orders:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersChanges",
        "parameters": [
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The ETag from the previous answer. A match is a 304 with no body."
          }
        ],
        "responses": {
          "200": {
            "description": "Something moved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderChanges"
                }
              }
            }
          },
          "304": {
            "description": "Nothing moved"
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}": {
      "get": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:read",
        "x-rate-limit-bucket": "reads",
        "summary": "One order",
        "description": "Scope `orders:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/events": {
      "get": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:read",
        "x-rate-limit-bucket": "reads",
        "summary": "The order's timeline",
        "description": "Scope `orders:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersByIdEvents",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Oldest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OrderEvent"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/accept": {
      "post": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Take the order",
        "description": "Starts the delivery window from the listing's quoted time.\n\nScope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdAccept",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/deliver": {
      "post": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Mark delivered",
        "description": "Refused with `credentials_required` on an account order without a handover.\n\nScope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDeliver",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "Delivered; the buyer's confirmation window has started",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/decline": {
      "post": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Decline a paid order",
        "description": "The hold on the buyer’s card is released, so they are not charged. A decline counts against your reliability as an order you could not fill, whatever the reason; it does not count as an order left unanswered, which is what pauses your listings. `reason` is kept with the order, and `no_stock` also pauses the listing until you publish it again.\n\nScope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDecline",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "no_stock",
                      "price_mistake",
                      "cannot_deliver",
                      "buyer_asked",
                      "other"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 500
                  }
                },
                "required": [
                  "reason"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Refunded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/credentials": {
      "post": {
        "tags": [
          "Orders"
        ],
        "x-scope": "orders:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "The account handover",
        "description": "Stored encrypted, readable by the buyer of this order alone. Never put a password in the chat.\n\nScope `orders:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdCredentials",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "account_username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "account_password": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "email_username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "email_password": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 1000
                  }
                },
                "required": [
                  "account_username",
                  "account_password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stored",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/messages": {
      "get": {
        "tags": [
          "Chat"
        ],
        "x-scope": "chat:read",
        "x-rate-limit-bucket": "reads",
        "summary": "The thread with the buyer",
        "description": "Scope `chat:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersByIdMessages",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Oldest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Message"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Chat"
        ],
        "x-scope": "chat:write",
        "x-rate-limit-bucket": "chat",
        "x-idempotent": true,
        "summary": "Send a message",
        "description": "The same contact detection as the site. Warnings come back to you; the message still goes.\n\nScope `chat:write`. Spends the `chat` budget (30 a minute for a new seller).",
        "operationId": "postV1OrdersByIdMessages",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                },
                "required": [
                  "body"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessagePosted"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/messages/image": {
      "post": {
        "tags": [
          "Chat"
        ],
        "x-scope": "chat:write",
        "x-rate-limit-bucket": "chat",
        "x-idempotent": true,
        "summary": "Send a screenshot",
        "description": "Proof of delivery at the moment it happens, which is what most disputes turn on. One PNG, JPEG or WebP of 3 MB or less, as `multipart/form-data` in a part named `file`. The bytes decide the type, never the filename or the declared content type, and every image is re-encoded before it is stored. It carries no `Idempotency-Key`: a repeat is a second picture in the thread. Video goes on a dispute statement as a link.\n\nScope `chat:write`. Spends the `chat` budget (30 a minute for a new seller).",
        "operationId": "postV1OrdersByIdMessagesImage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The image. PNG, JPEG or WebP, 3 MB or less."
                  }
                },
                "required": [
                  "file"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Sent",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "A prefixed ULID",
                      "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                    },
                    "image": {
                      "type": "string",
                      "description": "The name to read it back by."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "image",
                    "created_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/messages/image/{file}": {
      "get": {
        "tags": [
          "Chat"
        ],
        "x-scope": "chat:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Read one image from the thread",
        "description": "The bytes of an image a message carries, by the `image` name on that message: yours or the buyer’s. Only on an order you sold, and only a name that belongs to that order’s thread.\n\nScope `chat:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersByIdMessagesImageByFile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The `image` value from a message."
          }
        ],
        "responses": {
          "200": {
            "description": "The image",
            "content": {
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/disputes": {
      "get": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:read",
        "x-rate-limit-bucket": "reads",
        "summary": "The disputes on your orders",
        "description": "Newest first. `state=open` is the queue to work: each row says who has to answer, by when, whether they have, and the offer on the table.\n\nScope `disputes:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Disputes",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "resolved",
                "withdrawn"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of disputes",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Dispute"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute": {
      "get": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:read",
        "x-rate-limit-bucket": "reads",
        "summary": "One order's dispute",
        "description": "Both statements, every offer and how it ended. 404 `no_dispute` when the order never had one.\n\nScope `disputes:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersByIdDispute",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/quote": {
      "get": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:read",
        "x-rate-limit-bucket": "reads",
        "summary": "What a settlement would do",
        "description": "The split for a figure, from the same arithmetic that posts it if the figure is agreed. Refused with `not_a_settlement` at nothing and at the whole total: those two are the buyer releasing the payment and you refunding in full.\n\nScope `disputes:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1OrdersByIdDisputeQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buyer_refund",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The split",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettlementQuote"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/statements": {
      "post": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Put your side on the record",
        "description": "What happened and when, for the buyer and for the person who decides if you two cannot. Added, never edited or removed; up to ten. `links` carries up to three https addresses of evidence held elsewhere, which is where video goes: YouTube, Streamable, Medal, Twitch, Vimeo, Imgur, Gyazo, Lightshot, Steam, Google Drive, Dropbox, OneDrive or iCloud. Anywhere else is refused with 400 `invalid_evidence_link`. Screenshots can also go in the order chat. Answering inside `respond_by` is what keeps \"did not answer\" off your side of the record.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDisputeStatements",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "links": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "body"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dispute, with your statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/concede": {
      "post": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Refund the buyer in full",
        "description": "Always yours to do, because the only money it moves is money you were claiming. The whole total goes back to the buyer, you keep nothing from the order, the stock returns to the listing, and it is recorded as your concession rather than as a dispute decided against you. It cannot be undone. `order.dispute_resolved` and `order.refunded` follow.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDisputeConcede",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "default": {},
                "type": "object",
                "properties": {
                  "note": {
                    "type": "string",
                    "maxLength": 500
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dispute, closed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/offers": {
      "post": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Propose a settlement",
        "description": "A figure that goes back to the buyer; you keep the rest, less fees. It replaces any offer standing, from either side, and moves no money until the buyer accepts that same figure. Five offers a side. While it stands the buyer can accept it at any moment, so offer what you mean.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDisputeOffers",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "buyer_refund": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "buyer_refund"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dispute, with your offer standing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/offers/{offerId}/accept": {
      "post": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Accept the buyer's offer",
        "description": "Send the `buyer_refund` you are agreeing to. If the offer on the table is no longer that one (replaced, withdrawn, a different figure) the answer is 409 `offer_changed` and nothing moves: read the dispute again. On success the money moves at once and cannot be undone.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDisputeOffersByOfferIdAccept",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The offer's id, from `standing_offer`."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "buyer_refund": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                  }
                },
                "required": [
                  "buyer_refund"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dispute, settled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/offers/{offerId}/decline": {
      "post": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Decline the buyer's offer",
        "description": "The dispute stays open, and a person decides it if nothing else is agreed.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDisputeOffersByOfferIdDecline",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The offer's id, from `standing_offer`."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute, the offer declined",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders/{id}/dispute/offers/{offerId}/withdraw": {
      "post": {
        "tags": [
          "Disputes"
        ],
        "x-scope": "disputes:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Take your offer back",
        "description": "Only while it stands. An offer the buyer already accepted has moved the money.\n\nScope `disputes:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1OrdersByIdDisputeOffersByOfferIdWithdraw",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The id of an offer you made."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The dispute, the offer withdrawn",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dispute"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/{id}/codes": {
      "get": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "The code vault, counted",
        "description": "How many codes a gift-card or top-up listing holds, by state. Never the codes themselves.\n\nScope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1ListingsByIdCodes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Counts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeVault"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Stock codes",
        "description": "Up to a thousand a call, encrypted at rest. A code already in the vault is a duplicate and not stocked twice; one withdrawn earlier comes back. Stock rises by what was added. From then on an order on this listing is accepted and delivered the moment it is paid, with the codes attached for the buyer; a vault short of the order quantity leaves that order for you to deliver by hand.\n\nScope `listings:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "postV1ListingsByIdCodes",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "codes": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 4,
                      "maxLength": 200
                    }
                  }
                },
                "required": [
                  "codes"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What landed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeVaultAdded"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/{id}/codes/withdraw": {
      "post": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Take unsold codes off the shelf",
        "description": "The codes named, or every unsold one when none are. Stock falls by the same count.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1ListingsByIdCodesWithdraw",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "codes": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 4,
                      "maxLength": 200
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "What left",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodeVaultWithdrawn"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/{id}/login": {
      "get": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "How many logins an account listing holds",
        "description": "How many logins are stored on an account listing for delivery at payment, and when the newest was written. Never a login itself.\n\nScope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1ListingsByIdLogin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stored or not",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredLogin"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Replace the stored logins with one",
        "description": "Removes every login stored on the listing and stores this one, encrypted at rest, and sets the listing’s stock to 1. The game account’s username and password, and the email account’s when you include it (both or neither), with a note. To store several, use `POST /v1/listings/{id}/logins`.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "putV1ListingsByIdLogin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "account_username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "account_password": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "email_username": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "email_password": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 1000
                  }
                },
                "required": [
                  "account_username",
                  "account_password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stored",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredLogin"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Remove the stored logins",
        "description": "Removes every login stored on the listing, and as many from its stock. Orders on this listing wait for you to hand the account over again.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "deleteV1ListingsByIdLogin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "Removed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredLogin"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/listings/{id}/logins": {
      "post": {
        "tags": [
          "Listings"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Store account logins",
        "description": "Up to 1000 logins a call, each encrypted at rest, in the shape `PUT /v1/listings/{id}/login` takes. An account already stored on the listing, by its username, is skipped and counted under `duplicates`. The listing’s stock follows its stored logins: the first logins stored set it to their number, and more add to it. An order is accepted and delivered the moment it is paid when the listing holds a login for every account it buys, each in its handover for the buyer, and those logins leave the listing. An order the stored logins do not cover is left for you to deliver by hand.\n\nScope `listings:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "postV1ListingsByIdLogins",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "logins": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "account_username": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "account_password": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "email_username": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "email_password": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "note": {
                          "type": "string",
                          "maxLength": 1000
                        }
                      },
                      "required": [
                        "account_username",
                        "account_password"
                      ]
                    }
                  }
                },
                "required": [
                  "logins"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stored",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredLoginsAdded"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/boost-templates": {
      "get": {
        "tags": [
          "Boosting"
        ],
        "x-rate-limit-bucket": "reads",
        "summary": "The services a game standardises",
        "description": "Every boost template for one game, with the knobs a curve prices: a range or number option takes a per-unit rate, a choice option takes basis points per value, a flags option takes basis points per extra you offer. `offer_id` is your curve on it, if you have one.\n\nAny key. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1BoostTemplates",
        "parameters": [
          {
            "name": "game",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "In the hub order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoostTemplate"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/boost-offers": {
      "get": {
        "tags": [
          "Boosting"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Your curves",
        "description": "Scope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1BoostOffers",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Every curve, across games",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoostOffer"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/boost-offers/{template}": {
      "put": {
        "tags": [
          "Boosting"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Publish or replace your curve on a template",
        "description": "One curve per template: a second call replaces it and sets it active. Every rate must name an option the template defines. The cheapest configuration the curve prices is the \"from\" price on the hub and must be above zero. Prices are decimal USD.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "putV1BoostOffersByTemplate",
        "parameters": [
          {
            "name": "template",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The template id (btp_...) as GET /v1/boost-templates returns it. The slug is not accepted here."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "pricing": {
                    "type": "object",
                    "properties": {
                      "base": {
                        "type": "string",
                        "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                      },
                      "per_unit": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "bands": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "type": "string",
                            "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                          }
                        }
                      },
                      "rates": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "type": "string",
                            "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                          }
                        }
                      },
                      "rate_bands": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                            }
                          }
                        }
                      },
                      "choice_bps": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "type": "integer",
                            "minimum": -9000,
                            "maximum": 40000
                          }
                        }
                      },
                      "choice_prices": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "type": "string",
                            "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                          }
                        }
                      },
                      "flag_bps": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": -9000,
                          "maximum": 40000
                        }
                      },
                      "flag_prices": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        }
                      },
                      "ladder": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "type": "string",
                            "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                          }
                        }
                      },
                      "not_offered": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          }
                        }
                      },
                      "min_total": {
                        "type": "string",
                        "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                      }
                    },
                    "required": [
                      "base"
                    ]
                  },
                  "eta_hours": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 336
                  }
                },
                "required": [
                  "pricing",
                  "eta_hours"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The offer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoostOffer"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/boost-offers/{id}": {
      "patch": {
        "tags": [
          "Boosting"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Pause or resume a curve",
        "description": "Pausing is always allowed. Resuming is starting to sell again, which a suspended account cannot do.\n\nScope `listings:write`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "patchV1BoostOffersById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "paused"
                    ]
                  }
                },
                "required": [
                  "status"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The offer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoostOffer"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stock/syncs": {
      "get": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "Your last fifty syncs",
        "description": "Scope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1StockSyncs",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/StockSync"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Open a sync",
        "description": "Replace mode pauses every listing with an external id the sync does not mention; merge mode touches only the lines sent. An open sync expires after an hour.\n\nScope `listings:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "postV1StockSyncs",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "mode": {
                    "default": "merge",
                    "type": "string",
                    "enum": [
                      "replace",
                      "merge"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Open",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockSync"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stock/syncs/{id}": {
      "get": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "One sync, with its summary once committed",
        "description": "Scope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1StockSyncsById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The sync",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockSync"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stock/syncs/{id}/lines": {
      "put": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Stage up to a thousand lines",
        "description": "Each line is validated on its own and its game, category, server and package resolved; a bad line is reported here and counted as failed at commit, and the rest go on. The same external id staged again keeps the later line.\n\nScope `listings:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "putV1StockSyncsByIdLines",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "lines": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "game": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "category": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "server": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "package": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "title": {
                          "type": "string",
                          "minLength": 4,
                          "maxLength": 120
                        },
                        "tiers": {
                          "maxItems": 3,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "min_qty": {
                                "type": "integer",
                                "minimum": 2,
                                "maximum": 1000000000000000
                              },
                              "price": {
                                "type": "string",
                                "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                              }
                            },
                            "required": [
                              "min_qty",
                              "price"
                            ]
                          }
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 2000
                        },
                        "price": {
                          "type": "string",
                          "pattern": "^\\d{1,12}(\\.\\d{1,4})?$"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "GBP",
                            "EUR",
                            "USD",
                            "AUD",
                            "CAD",
                            "CHF",
                            "CZK",
                            "DKK",
                            "HKD",
                            "HUF",
                            "JPY",
                            "NOK",
                            "PLN",
                            "RON",
                            "SEK",
                            "SGD"
                          ]
                        },
                        "unit_label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        },
                        "price_per_qty": {
                          "default": 1,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000
                        },
                        "min_qty": {
                          "default": 1,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000000
                        },
                        "max_qty": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000000000
                        },
                        "stock_qty": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000000000000
                        },
                        "low_stock_alert_qty": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 1000000000000000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "delivery_eta_minutes": {
                          "default": 60,
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 20160
                        },
                        "attributes": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40
                          },
                          "additionalProperties": {
                            "type": "string",
                            "maxLength": 80
                          }
                        },
                        "external_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "status": {
                          "default": "active",
                          "type": "string",
                          "enum": [
                            "draft",
                            "active",
                            "paused"
                          ]
                        }
                      },
                      "required": [
                        "game",
                        "category",
                        "price",
                        "external_id"
                      ]
                    }
                  }
                },
                "required": [
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A result per line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Staged"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:read",
        "x-rate-limit-bucket": "reads",
        "summary": "The lines, with the result each got",
        "description": "Scope `listings:read`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1StockSyncsByIdLines",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "created",
                "updated",
                "unchanged",
                "paused",
                "failed"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 200,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "In staging order",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SyncLine"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/stock/syncs/{id}/commit": {
      "post": {
        "tags": [
          "Stock syncs"
        ],
        "x-scope": "listings:write",
        "x-rate-limit-bucket": "bulk",
        "x-idempotent": true,
        "summary": "Apply the sync",
        "description": "Returns at once; the worker applies it in short transactions, recounts your catalog pages once, and stamps a result on every line.\n\nScope `listings:write`. Spends the `bulk` budget (20 a minute for a new seller).",
        "operationId": "postV1StockSyncsByIdCommit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "202": {
            "description": "Committing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StockSync"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "reads",
        "summary": "Your endpoints",
        "description": "Scope `webhooks:manage`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1Webhooks",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Every endpoint, never a secret",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Webhook"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Add an endpoint",
        "description": "HTTPS only, to a public address, and to port 443 only: a URL that names any other port is refused as `unsafe_url`. Up to five per account. An empty `events` list subscribes to everything. The secret is in this one response and nowhere else.\n\nScope `webhooks:manage`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1Webhooks",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 2048
                  },
                  "events": {
                    "default": [],
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60
                  }
                },
                "required": [
                  "url"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created, with the secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookWithSecret"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "reads",
        "summary": "One endpoint",
        "description": "Scope `webhooks:manage`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1WebhooksById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Change the URL, the events, the label, or re-enable it",
        "description": "Scope `webhooks:manage`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "patchV1WebhooksById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 2048
                  },
                  "events": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "label": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "disabled"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The endpoint, after the change",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Webhook"
                }
              }
            }
          },
          "400": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Remove an endpoint and its delivery log",
        "description": "Scope `webhooks:manage`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "deleteV1WebhooksById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "204": {
            "description": "Gone"
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/test": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Send a ping through the real pipeline",
        "description": "Scope `webhooks:manage`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1WebhooksByIdTest",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "202": {
            "description": "Queued; it arrives within a few seconds and shows in the delivery log",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Queued"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/rotate-secret": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "New secret, with a day of overlap",
        "description": "Deliveries carry two signatures for 24 hours, one with each secret, so the receiver can be switched over without a gap.\n\nScope `webhooks:manage`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1WebhooksByIdRotateSecret",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "The endpoint, with the new secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookWithSecret"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/deliveries": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "reads",
        "summary": "The delivery log",
        "description": "Scope `webhooks:manage`. Spends the `reads` budget (600 a minute for a new seller).",
        "operationId": "getV1WebhooksByIdDeliveries",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "succeeded",
                "failed",
                "exhausted"
              ]
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Newest first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Delivery"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Pass back as ?cursor= for the next page. Null on the last page."
                    }
                  },
                  "required": [
                    "data",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{id}/deliveries/{deliveryId}/replay": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "x-scope": "webhooks:manage",
        "x-rate-limit-bucket": "writes",
        "x-idempotent": true,
        "summary": "Send a delivery again, now",
        "description": "Scope `webhooks:manage`. Spends the `writes` budget (120 a minute for a new seller).",
        "operationId": "postV1WebhooksByIdDeliveriesByDeliveryIdReplay",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deliveryId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "description": "Any string you choose, up to 200 characters. A repeat within a day gets the first response back with `Idempotent-Replayed: true`, and the write never runs twice. A first response too large to keep is replayed under its original status with `Idempotent-Body: omitted` and the `ReplayedWithoutBody` schema in place of the body: the write completed, so read the resource for its current state. A repeat while the first is running is a 409 `idempotency_in_progress`. If the first attempt ended in a 5xx, or never reported its outcome, the repeat is a 409 `idempotency_outcome_unknown`: the write may have landed before the failure, so check whether it did, then use a new key. A 4xx refusal releases the key, so a corrected request runs under it. A key that is empty or longer than 200 characters is a 400 `idempotency_key_invalid`. If the key cannot be checked the request is refused with 503 `idempotency_unavailable`: send it again with the same key."
          }
        ],
        "responses": {
          "200": {
            "description": "Queued as a fresh attempt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Delivery"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is not live here",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Refused",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The budget for the minute is spent; wait for Retry-After",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "order.paid": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "A buyer paid for one of your listings: their payment is held, and accepting the order takes it. The order is yours to accept or decline.",
        "operationId": "onOrderPaid",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.paid"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "seq",
                      "from_state",
                      "to_state"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.accepted": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "You accepted the order.",
        "operationId": "onOrderAccepted",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.accepted"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "seq",
                      "from_state",
                      "to_state"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.delivered": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "You marked the order delivered, or its codes were handed over from your stock.",
        "operationId": "onOrderDelivered",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.delivered"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "seq",
                      "from_state",
                      "to_state"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.completed": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "The order is complete and your proceeds are on hold until the payout date.",
        "operationId": "onOrderCompleted",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.completed"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "by": {
                        "type": "string",
                        "enum": [
                          "buyer",
                          "auto_confirm",
                          "dispute",
                          "chargeback"
                        ],
                        "description": "Who completed it: the buyer confirming, the confirmation window passing, a dispute decided for you, or the buyer's bank deciding a chargeback for you."
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "seq",
                      "from_state",
                      "to_state",
                      "by"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.cancelled": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "The order ended before you accepted it, and the buyer's held payment was released: nothing was taken, so nothing was refunded.",
        "operationId": "onOrderCancelled",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.cancelled"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "seller_declined",
                          "buyer_cancelled",
                          "not_accepted",
                          "payment_not_taken",
                          "refund_requested",
                          "card_fraud"
                        ],
                        "description": "seller_declined: you declined it. buyer_cancelled: the buyer cancelled once your 30 minutes to accept had passed (before 12 October 2026, at any time before you accepted). not_accepted: nobody accepted it within 24 hours of payment. payment_not_taken: the buyer's payment could not be taken when the order was accepted. refund_requested: the buyer asked for a refund after your 30 minutes had passed, from 12 to 15 October 2026. card_fraud: the card's bank reported the payment as fraud before it was taken. Do not deliver anything for it."
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "seq",
                      "from_state",
                      "to_state",
                      "reason"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.refunded": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "The buyer was refunded in full, after their payment was taken.",
        "operationId": "onOrderRefunded",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.refunded"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "dispute",
                          "admin",
                          "seller_declined",
                          "chargeback",
                          "card_fraud"
                        ],
                        "description": "Why: a dispute was decided for the buyer, or an operator refunded it. seller_declined: you declined it, until 15 October 2026; since then a decline cancels the order, nothing taken. chargeback: the buyer's bank took the payment back. Do not deliver anything for it. card_fraud: the card's bank reported the payment as fraud, and the buyer was refunded. Do not deliver anything for it."
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "seq",
                      "from_state",
                      "to_state",
                      "reason"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.disputed": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "A dispute was opened on the order. The payment stays held while the dispute is open.",
        "operationId": "onOrderDisputed",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.disputed"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dispute": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Dispute"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "dispute",
                      "seq",
                      "from_state",
                      "to_state"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.dispute_resolved": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "The dispute ended.",
        "operationId": "onOrderDisputeResolved",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.dispute_resolved"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dispute": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Dispute"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "seq": {
                        "type": "integer",
                        "description": "The transition's number: the same one the order's events endpoint shows and `last_event_seq` reports. Order deliveries by it."
                      },
                      "from_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "to_state": {
                        "type": "string",
                        "enum": [
                          "draft",
                          "payment_pending",
                          "paid",
                          "accepted",
                          "delivering",
                          "delivered",
                          "disputed",
                          "completed",
                          "cancelled",
                          "expired",
                          "refunded",
                          "partially_refunded"
                        ]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "buyer",
                          "seller",
                          "split"
                        ],
                        "description": "Where the payment went: back to the buyer, to you, or divided."
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "dispute",
                      "seq",
                      "from_state",
                      "to_state",
                      "outcome"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.dispute_updated": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "The other side did something in an open dispute: wrote a statement, or made, withdrew or answered an offer.",
        "operationId": "onOrderDisputeUpdated",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.dispute_updated"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dispute": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Dispute"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "what": {
                        "type": "string",
                        "enum": [
                          "statement",
                          "offer"
                        ]
                      },
                      "by": {
                        "type": "string",
                        "enum": [
                          "buyer",
                          "seller"
                        ]
                      },
                      "offer_id": {
                        "type": "string",
                        "description": "The offer, where `what` is `offer`."
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "open",
                          "accepted",
                          "declined",
                          "withdrawn",
                          "superseded",
                          "void"
                        ],
                        "description": "The offer's state after the change, where `what` is `offer`."
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "dispute",
                      "what",
                      "by"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "order.message": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "The buyer, or the system, wrote in the order chat. Your own messages do not come back.",
        "operationId": "onOrderMessage",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "order.message"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "order_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "order": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Order"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "message": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Message"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "order_id",
                      "order",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "listing.low_stock": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "A listing's stock fell to its alert quantity, whatever moved it.",
        "operationId": "onListingLowStock",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "listing.low_stock"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "listing_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "listing": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Listing"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "stock_qty": {
                        "type": "integer",
                        "format": "int64"
                      },
                      "low_stock_alert_qty": {
                        "type": "integer",
                        "format": "int64"
                      }
                    },
                    "required": [
                      "listing_id",
                      "listing",
                      "stock_qty",
                      "low_stock_alert_qty"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "listing.sold_out": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "A listing's stock reached zero, whatever moved it.",
        "operationId": "onListingSoldOut",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "listing.sold_out"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "listing_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "listing": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Listing"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "stock_qty": {
                        "type": "integer",
                        "format": "int64"
                      }
                    },
                    "required": [
                      "listing_id",
                      "listing",
                      "stock_qty"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "listing.taken_down": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "An operator took a listing down. Its status is locked until it is reinstated.",
        "operationId": "onListingTakenDown",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "listing.taken_down"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "listing_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "listing": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Listing"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "description": "What the operator wrote."
                      }
                    },
                    "required": [
                      "listing_id",
                      "listing",
                      "reason"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "listing.reinstated": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "An operator reinstated a listing. It comes back paused, for you to publish.",
        "operationId": "onListingReinstated",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "listing.reinstated"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "listing_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "listing": {
                        "anyOf": [
                          {
                            "$ref": "#/components/schemas/Listing"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "paused"
                        ]
                      }
                    },
                    "required": [
                      "listing_id",
                      "listing",
                      "status"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "account.trading_status_changed": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Your account was suspended, or a suspension was lifted.",
        "operationId": "onAccountTradingStatusChanged",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "account.trading_status_changed"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "active",
                          "pending",
                          "suspended"
                        ]
                      }
                    },
                    "required": [
                      "user_id",
                      "status"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "account.selling_changed": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Your listings were hidden from buyers by the platform, or returned. Holiday mode, which is your own switch, does not raise this.",
        "operationId": "onAccountSellingChanged",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "account.selling_changed"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "paused": {
                        "type": "boolean",
                        "description": "True while nothing of yours is offered to buyers."
                      },
                      "reason": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "enum": [
                          "missed_orders",
                          "declines",
                          "order_limit",
                          "sales_limit",
                          null
                        ],
                        "description": "Why: paid orders ran out without an answer, you declined a burst of paid orders (three inside 24 hours by default), your account is restricted and has as many orders open as it may, or your account is new and its orders over the last thirty days have come to what a new account may sell. Null when your listings are back."
                      },
                      "resume_after": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time",
                        "description": "After missed orders, the earliest you can resume, from your seller dashboard. A key cannot resume. Null when you can resume at once, and for an order or sales limit, which lifts by itself."
                      }
                    },
                    "required": [
                      "user_id",
                      "paused",
                      "reason",
                      "resume_after"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "account.lane_selling_changed": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Your listings in one category were hidden from buyers by the platform, or returned. Your other categories are not affected.",
        "operationId": "onAccountLaneSellingChanged",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "account.lane_selling_changed"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "user_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "lane": {
                        "type": "string",
                        "enum": [
                          "currency",
                          "item",
                          "account",
                          "service",
                          "topup",
                          "giftcard"
                        ],
                        "description": "The category."
                      },
                      "paused": {
                        "type": "boolean",
                        "description": "True while nothing of yours in this category is offered to buyers."
                      },
                      "reason": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "enum": [
                          "order_limit",
                          null
                        ],
                        "description": "Why: you are restricted in this category and have as many of its orders open as you may. It lifts by itself when one is delivered. Null when your listings there are back."
                      }
                    },
                    "required": [
                      "user_id",
                      "lane",
                      "paused",
                      "reason"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    },
    "ping": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "A test delivery you asked for, addressed to one endpoint.",
        "operationId": "onPing",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "A prefixed ULID",
                    "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "ping"
                    ]
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "api_version": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "endpoint_id": {
                        "type": "string",
                        "description": "A prefixed ULID",
                        "example": "lst_01J9ZQ2K9V3XW7NBRTM4C6D8EF"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "endpoint_id",
                      "message"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "type",
                  "created_at",
                  "api_version",
                  "data"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Any other answer, or none in ten seconds, is a failed attempt and is retried."
          }
        }
      }
    }
  },
  "x-scopes": [
    "catalog:read",
    "listings:read",
    "listings:write",
    "orders:read",
    "orders:write",
    "disputes:read",
    "disputes:write",
    "chat:read",
    "chat:write",
    "account:read",
    "account:write",
    "payouts:read",
    "webhooks:manage"
  ],
  "x-rate-limits": {
    "reads": {
      "limit": 600,
      "windowMs": 60000
    },
    "writes": {
      "limit": 120,
      "windowMs": 60000
    },
    "bulk": {
      "limit": 20,
      "windowMs": 60000
    },
    "chat": {
      "limit": 30,
      "windowMs": 60000
    }
  },
  "x-webhooks": {
    "events": [
      "order.paid",
      "order.accepted",
      "order.delivered",
      "order.completed",
      "order.cancelled",
      "order.refunded",
      "order.disputed",
      "order.dispute_resolved",
      "order.dispute_updated",
      "order.message",
      "listing.low_stock",
      "listing.sold_out",
      "listing.taken_down",
      "listing.reinstated",
      "account.trading_status_changed",
      "account.selling_changed",
      "account.lane_selling_changed",
      "ping"
    ],
    "body": {
      "$ref": "#/components/schemas/WebhookEvent"
    },
    "headers": {
      "Freeport-Signature": "t=<unix seconds>,v1=<hex>[,v1=<hex>]",
      "Freeport-Event-Id": "The event id; the same event never arrives with another.",
      "Freeport-Event-Type": "The event type.",
      "Freeport-Delivery-Id": "This attempt's delivery id, for the log."
    },
    "signature": "HMAC-SHA256 with your endpoint secret over `${t}.${body}` where body is the raw bytes. Accept a delivery if any v1 matches. Refuse a t more than five minutes from now.",
    "retries_seconds": [
      60,
      300,
      1800,
      7200,
      21600,
      43200,
      86400,
      86400,
      86400
    ],
    "max_attempts": 10,
    "disabled_after_hours": 72,
    "ordering": "Not guaranteed across events. Every order transition's body carries seq (order.message and order.dispute_updated are not transitions and carry none), the same number the order's events endpoint shows and the order's last_event_seq reports: order deliveries by it, and fetch the order on receipt rather than trusting the body's state.",
    "timeout_seconds": 10,
    "redirects": "Never followed; a 3xx is a failed attempt."
  },
  "x-request-signing": {
    "opt_in": "Turn signing on for a key from Selling, then Integrations. You get a signing secret once.",
    "headers": {
      "Freeport-Timestamp": "<unix seconds>, within five minutes of now",
      "Freeport-Signature": "v1=<hex>"
    },
    "signature": "HMAC-SHA256 with the signing secret over `${timestamp}.${METHOD}.${request-target}.${sha256hex(body)}`; the request-target is the path and query exactly as sent, and the body is the raw bytes or empty.",
    "replay": "A signature is accepted once inside its window."
  }
}