{
  "operationId": "upsertPaymentSession",
  "method": "PUT",
  "path": "/agent/checkout-session/by-external-id/{external_id}",
  "examples": [
    {
      "name": "create",
      "summary": "First call under this key: creates the session (201, created true)",
      "value": {
        "product": "Yamaha FG800 acoustic guitar in a hard case",
        "from_zip": "07102",
        "to_zip": "30303",
        "to_country": "US",
        "quantity": 1
      }
    },
    {
      "name": "reprice",
      "summary": "Same key again: re-prices the stored session on another service (200, created false)",
      "value": {
        "product": "Yamaha FG800 acoustic guitar in a hard case",
        "from_zip": "07102",
        "to_zip": "30303",
        "to_country": "US",
        "quantity": 1,
        "service": "UPS Ground"
      }
    },
    {
      "name": "fromQuote",
      "summary": "Reuse a quote_id (no second carrier call)",
      "value": {
        "quote_id": "q_8f3c2e1a4b7d",
        "service": "USPS Ground Advantage"
      }
    },
    {
      "name": "dryRun",
      "summary": "Price and validate without storing anything",
      "value": {
        "dry_run": true,
        "product": "paperback books",
        "from_zip": "07030",
        "to_zip": "33101",
        "to_country": "US",
        "quantity": 1
      }
    }
  ]
}
