{
  "tools": [
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get the current billing period",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "billing_current",
      "outputSchema": {
        "type": "object",
        "properties": {
          "asOf": {
            "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))$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "charges": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "const": "charges_not_available"
              },
              "status": {
                "type": "string",
                "const": "incomplete"
              }
            },
            "required": ["reason", "status"],
            "additionalProperties": false
          },
          "credit": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "balance": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      }
                    },
                    "required": ["amount", "currency"],
                    "additionalProperties": false
                  },
                  "status": {
                    "type": "string",
                    "const": "known"
                  }
                },
                "required": ["balance", "status"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "const": "currency_mismatch"
                  },
                  "status": {
                    "type": "string",
                    "const": "incomplete"
                  }
                },
                "required": ["reason", "status"],
                "additionalProperties": false
              }
            ]
          },
          "openBill": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "amounts": {
                    "type": "object",
                    "properties": {
                      "amountDue": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "amountRemaining": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "subtotal": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "amountDue",
                      "amountRemaining",
                      "currency",
                      "subtotal",
                      "total"
                    ],
                    "additionalProperties": false
                  },
                  "basis": {
                    "type": "string",
                    "const": "known"
                  },
                  "invoiceId": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^in_[A-Za-z0-9_]+$"
                  },
                  "stage": {
                    "type": "string",
                    "const": "draft"
                  }
                },
                "required": ["amounts", "basis", "invoiceId", "stage"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "amounts": {
                    "type": "object",
                    "properties": {
                      "amountDue": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "amountRemaining": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "subtotal": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "amountDue",
                      "amountRemaining",
                      "currency",
                      "subtotal",
                      "total"
                    ],
                    "additionalProperties": false
                  },
                  "basis": {
                    "type": "string",
                    "const": "known"
                  },
                  "invoiceId": {
                    "type": "string",
                    "maxLength": 255,
                    "pattern": "^in_[A-Za-z0-9_]+$"
                  },
                  "stage": {
                    "type": "string",
                    "const": "issued"
                  },
                  "status": {
                    "type": "string",
                    "enum": ["open", "paid", "uncollectible", "void"]
                  }
                },
                "required": [
                  "amounts",
                  "basis",
                  "invoiceId",
                  "stage",
                  "status"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "amounts": {
                    "type": "object",
                    "properties": {
                      "amountDue": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "amountRemaining": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "subtotal": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "amountDue",
                      "amountRemaining",
                      "currency",
                      "subtotal",
                      "total"
                    ],
                    "additionalProperties": false
                  },
                  "basis": {
                    "type": "string",
                    "const": "estimate"
                  },
                  "stage": {
                    "type": "string",
                    "const": "upcoming"
                  }
                },
                "required": ["amounts", "basis", "stage"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "ambiguous_invoice",
                      "currency_mismatch",
                      "invoice_scan_incomplete",
                      "no_upcoming_invoice",
                      "no_verified_period",
                      "no_verified_subscription",
                      "unrecognized_invoice_state",
                      "upcoming_period_mismatch"
                    ]
                  },
                  "stage": {
                    "type": "string",
                    "const": "unavailable"
                  }
                },
                "required": ["reason", "stage"],
                "additionalProperties": false
              }
            ]
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "pendingItems": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      }
                    },
                    "required": ["amount", "currency"],
                    "additionalProperties": false
                  },
                  "itemCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "const": "known"
                  }
                },
                "required": ["amount", "itemCount", "status"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "currency_mismatch",
                      "other_subscription",
                      "scan_incomplete"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "const": "incomplete"
                  }
                },
                "required": ["reason", "status"],
                "additionalProperties": false
              }
            ]
          },
          "period": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "endDate": {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  },
                  "endsAt": {
                    "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))$"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  },
                  "startDate": {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  },
                  "startsAt": {
                    "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))$"
                  },
                  "status": {
                    "type": "string",
                    "const": "verified"
                  }
                },
                "required": [
                  "endDate",
                  "endsAt",
                  "id",
                  "startDate",
                  "startsAt",
                  "status"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "ambiguous_period",
                      "binding_mismatch",
                      "no_verified_period"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "const": "unavailable"
                  }
                },
                "required": ["reason", "status"],
                "additionalProperties": false
              }
            ]
          },
          "serviceDate": {
            "type": "string",
            "format": "date",
            "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])))$"
          },
          "total": {
            "type": "object",
            "properties": {
              "incompleteComponents": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "charges",
                    "credit",
                    "open_bill",
                    "pending_items",
                    "period"
                  ]
                }
              },
              "status": {
                "type": "string",
                "const": "incomplete"
              }
            },
            "required": ["incompleteComponents", "status"],
            "additionalProperties": false
          }
        },
        "required": [
          "asOf",
          "currency",
          "charges",
          "credit",
          "openBill",
          "organizationId",
          "pendingItems",
          "period",
          "serviceDate",
          "total"
        ],
        "additionalProperties": false
      },
      "title": "Current billing period",
      "operation": "getCurrentBilling"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List billing periods",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "billing_periods_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "endDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "endsAt": {
                  "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))$"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "startDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "startsAt": {
                  "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))$"
                },
                "timing": {
                  "type": "string",
                  "enum": ["past", "current", "future"]
                }
              },
              "required": [
                "endDate",
                "endsAt",
                "id",
                "startDate",
                "startsAt",
                "timing"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List billing periods",
      "operation": "listBillingPeriods"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get the current physical box count",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "box_count_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "observedAsOf": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "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))$"
                  },
                  {
                    "type": "string",
                    "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(?:Z))$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceRef": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": ["available", "unavailable"]
          },
          "unit": {
            "type": "string",
            "const": "boxes"
          }
        },
        "required": [
          "count",
          "observedAsOf",
          "reason",
          "sourceRef",
          "status",
          "unit"
        ],
        "additionalProperties": false
      },
      "title": "Get live Warehouse box count",
      "operation": "getLiveBoxCount"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export customer charges as CSV",
      "inputSchema": {
        "type": "object",
        "properties": {
          "fromDate": {
            "type": "string",
            "format": "date",
            "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])))$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "servicePeriodId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "toDate": {
            "type": "string",
            "format": "date",
            "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])))$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "charges_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          }
        },
        "required": ["content", "filename"],
        "additionalProperties": false
      },
      "title": "Export customer charges",
      "operation": "exportCharges"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a customer charge",
      "inputSchema": {
        "type": "object",
        "properties": {
          "chargeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["chargeId", "organizationId"],
        "additionalProperties": false
      },
      "name": "charges_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "billedQuantity": {
            "type": ["string", "null"]
          },
          "billedTime": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "billedMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "incrementMinutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "recordedMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "billedMinutes",
                  "incrementMinutes",
                  "recordedMinutes"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "customerServiceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "currentRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "originalServiceDate": {
            "type": "string",
            "format": "date",
            "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])))$"
          },
          "revisions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "correctionKind": {
                  "type": "string",
                  "enum": [
                    "original",
                    "corrected_total",
                    "difference",
                    "credit"
                  ]
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "recordedAt": {
                  "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))$"
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "amount",
                "correctionKind",
                "currency",
                "recordedAt",
                "revision"
              ],
              "additionalProperties": false
            }
          },
          "servicePeriodId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amount",
          "billedQuantity",
          "billedTime",
          "currency",
          "customerServiceId",
          "currentRevision",
          "id",
          "originalServiceDate",
          "revisions",
          "servicePeriodId"
        ],
        "additionalProperties": false
      },
      "title": "Get customer charge",
      "operation": "getCharge"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List customer charges",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "fromDate": {
            "type": "string",
            "format": "date",
            "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])))$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "servicePeriodId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "toDate": {
            "type": "string",
            "format": "date",
            "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])))$"
          },
          "invoiceId": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^in_[A-Za-z0-9_]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "charges_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "billedQuantity": {
                  "type": ["string", "null"]
                },
                "billedTime": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "billedMinutes": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "incrementMinutes": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        "recordedMinutes": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "billedMinutes",
                        "incrementMinutes",
                        "recordedMinutes"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "customerServiceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "currentRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "originalServiceDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "revisions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "correctionKind": {
                        "type": "string",
                        "enum": [
                          "original",
                          "corrected_total",
                          "difference",
                          "credit"
                        ]
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "recordedAt": {
                        "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))$"
                      },
                      "revision": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "amount",
                      "correctionKind",
                      "currency",
                      "recordedAt",
                      "revision"
                    ],
                    "additionalProperties": false
                  }
                },
                "servicePeriodId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "amount",
                "billedQuantity",
                "billedTime",
                "currency",
                "customerServiceId",
                "currentRevision",
                "id",
                "originalServiceDate",
                "revisions",
                "servicePeriodId"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List customer charges",
      "operation": "listCharges"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get customer credit",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "credit_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "credit": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "balance": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      }
                    },
                    "required": ["amount", "currency"],
                    "additionalProperties": false
                  },
                  "status": {
                    "type": "string",
                    "const": "known"
                  }
                },
                "required": ["balance", "status"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "const": "currency_mismatch"
                  },
                  "status": {
                    "type": "string",
                    "const": "incomplete"
                  }
                },
                "required": ["reason", "status"],
                "additionalProperties": false
              }
            ]
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["credit", "organizationId"],
        "additionalProperties": false
      },
      "title": "Get customer credit",
      "operation": "getCustomerCredit"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List credit transactions",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "credit_transactions_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "createdAt": {
                  "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))$"
                },
                "creditNoteId": {
                  "type": ["string", "null"]
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "endingCredit": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "id": {
                  "type": "string"
                },
                "invoiceId": {
                  "type": ["string", "null"]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "adjustment",
                    "applied_to_invoice",
                    "credit_note",
                    "initial",
                    "invoice_overpaid",
                    "invoice_too_large",
                    "invoice_too_small",
                    "migration",
                    "unapplied_from_invoice",
                    "unspent_receiver_credit",
                    "other"
                  ]
                }
              },
              "required": [
                "amount",
                "createdAt",
                "creditNoteId",
                "currency",
                "endingCredit",
                "id",
                "invoiceId",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List credit transactions",
      "operation": "listCreditTransactions"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List deposit dispute events",
      "inputSchema": {
        "type": "object",
        "properties": {
          "after": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "deposit_dispute_events_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "checkpoint": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "deadlineAt": {
                  "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))$"
                },
                "depositRef": {
                  "type": ["string", "null"]
                },
                "disputeId": {
                  "type": "string"
                },
                "eventId": {
                  "type": "string"
                },
                "occurredAt": {
                  "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))$"
                },
                "outcome": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "accepted",
                        "shipped_back_by_request",
                        "shipped_back_automatically"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "purchaseOrderId": {
                  "type": "string"
                },
                "sequence": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "dispute.opened",
                    "dispute.reminder",
                    "dispute.resolved"
                  ]
                }
              },
              "required": [
                "deadlineAt",
                "depositRef",
                "disputeId",
                "eventId",
                "occurredAt",
                "outcome",
                "purchaseOrderId",
                "sequence",
                "type"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": ["checkpoint", "items"],
        "additionalProperties": false
      },
      "title": "List deposit dispute events",
      "operation": "listDepositDisputeEvents"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List deposit condition disputes",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "purchaseOrderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "status": {
            "default": "open",
            "type": "string",
            "enum": ["open", "resolved", "all"]
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "deposit_disputes_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assessedCondition": {
                  "type": "string",
                  "enum": ["nm", "lp", "mp", "hp", "dmg", "no_damage_found"]
                },
                "deadlineAt": {
                  "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))$"
                },
                "declaredCondition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "depositRef": {
                  "type": ["string", "null"]
                },
                "disputeId": {
                  "type": "string"
                },
                "openedAt": {
                  "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))$"
                },
                "poNumber": {
                  "type": "string"
                },
                "productId": {
                  "type": "string"
                },
                "purchaseOrderId": {
                  "type": "string"
                },
                "reason": {
                  "type": "string",
                  "enum": ["assessed_worse", "undeclared_extra"]
                },
                "resolution": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["accept_and_tokenize", "ship_back"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "resolvedAt": {
                  "anyOf": [
                    {
                      "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))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "resolvedBy": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["request", "warehouse", "automatic"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": ["open", "resolved"]
                },
                "unitRef": {
                  "type": "string"
                }
              },
              "required": [
                "assessedCondition",
                "deadlineAt",
                "declaredCondition",
                "depositRef",
                "disputeId",
                "openedAt",
                "poNumber",
                "productId",
                "purchaseOrderId",
                "reason",
                "resolution",
                "resolvedAt",
                "resolvedBy",
                "status",
                "unitRef"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List deposit disputes",
      "operation": "listDepositDisputes"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Resolve a deposit condition dispute",
      "inputSchema": {
        "type": "object",
        "properties": {
          "disputeId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "resolution": {
            "type": "string",
            "enum": ["accept_and_tokenize", "ship_back"]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "disputeId",
          "organizationId",
          "resolution",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "deposit_disputes_resolve",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "dispute": {
            "type": "object",
            "properties": {
              "assessedCondition": {
                "type": "string",
                "enum": ["nm", "lp", "mp", "hp", "dmg", "no_damage_found"]
              },
              "deadlineAt": {
                "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))$"
              },
              "declaredCondition": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["nm", "lp", "mp", "hp", "dmg"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "depositRef": {
                "type": ["string", "null"]
              },
              "disputeId": {
                "type": "string"
              },
              "openedAt": {
                "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))$"
              },
              "poNumber": {
                "type": "string"
              },
              "productId": {
                "type": "string"
              },
              "purchaseOrderId": {
                "type": "string"
              },
              "reason": {
                "type": "string",
                "enum": ["assessed_worse", "undeclared_extra"]
              },
              "resolution": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["accept_and_tokenize", "ship_back"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "resolvedAt": {
                "anyOf": [
                  {
                    "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))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "resolvedBy": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["request", "warehouse", "automatic"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": ["open", "resolved"]
              },
              "unitRef": {
                "type": "string"
              }
            },
            "required": [
              "assessedCondition",
              "deadlineAt",
              "declaredCondition",
              "depositRef",
              "disputeId",
              "openedAt",
              "poNumber",
              "productId",
              "purchaseOrderId",
              "reason",
              "resolution",
              "resolvedAt",
              "resolvedBy",
              "status",
              "unitRef"
            ],
            "additionalProperties": false
          },
          "reportRevision": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "effects",
          "operationId",
          "outcome",
          "dispute",
          "reportRevision"
        ],
        "additionalProperties": false
      },
      "title": "Resolve deposit dispute",
      "operation": "resolveDepositDispute"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Download a document",
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["documentId", "organizationId"],
        "additionalProperties": false
      },
      "name": "documents_download",
      "outputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "expiresAt": {
            "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))$"
          },
          "kind": {
            "type": "string",
            "enum": ["bill_of_lading", "packing_slip", "prepaid_label"]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": ["documentId", "expiresAt", "kind", "url"],
        "additionalProperties": false
      },
      "title": "Download document",
      "operation": "downloadDocument"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a document",
      "inputSchema": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["documentId", "organizationId"],
        "additionalProperties": false
      },
      "name": "documents_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "attachedAt": {
            "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))$"
          },
          "deliverable": {
            "type": "boolean"
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "kind": {
            "type": "string",
            "enum": ["bill_of_lading", "packing_slip", "prepaid_label"]
          }
        },
        "required": ["attachedAt", "deliverable", "id", "kind"],
        "additionalProperties": false
      },
      "title": "Get document",
      "operation": "getDocument"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export freight as CSV",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "freight_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          }
        },
        "required": ["content", "filename"],
        "additionalProperties": false
      },
      "title": "Export freight",
      "operation": "exportFreight"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get freight",
      "inputSchema": {
        "type": "object",
        "properties": {
          "freightId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["freightId", "organizationId"],
        "additionalProperties": false
      },
      "name": "freight_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "carrier": {
            "type": ["string", "null"]
          },
          "customerReference": {
            "type": ["string", "null"]
          },
          "destination": {
            "type": ["string", "null"]
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": ["bol", "packing-slip"]
                },
                "state": {
                  "type": "string",
                  "enum": ["available", "unavailable"]
                }
              },
              "required": ["id", "kind", "state"],
              "additionalProperties": false
            }
          },
          "id": {
            "type": "string"
          },
          "latestUpdate": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  }
                },
                "required": ["at", "description"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "proNumber": {
            "type": ["string", "null"]
          },
          "quote": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                },
                "required": ["amount", "currency"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "recipientName": {
            "type": ["string", "null"]
          },
          "reference": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending-pickup",
              "in-transit",
              "delivered",
              "exception",
              "unknown"
            ]
          },
          "trackingNumber": {
            "type": ["string", "null"]
          },
          "deliveryLabel": {
            "type": ["string", "null"]
          },
          "exceptionMessage": {
            "type": ["string", "null"]
          },
          "origin": {
            "type": ["string", "null"]
          },
          "pickupLabel": {
            "type": ["string", "null"]
          },
          "recipientAddress": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "carrier",
          "customerReference",
          "destination",
          "documents",
          "id",
          "latestUpdate",
          "proNumber",
          "quote",
          "recipientName",
          "reference",
          "status",
          "trackingNumber",
          "deliveryLabel",
          "exceptionMessage",
          "origin",
          "pickupLabel",
          "recipientAddress"
        ],
        "additionalProperties": false
      },
      "title": "Get freight",
      "operation": "getFreight"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List freight",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "freight_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "carrier": {
                  "type": ["string", "null"]
                },
                "customerReference": {
                  "type": ["string", "null"]
                },
                "destination": {
                  "type": ["string", "null"]
                },
                "documents": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string",
                        "enum": ["bol", "packing-slip"]
                      },
                      "state": {
                        "type": "string",
                        "enum": ["available", "unavailable"]
                      }
                    },
                    "required": ["id", "kind", "state"],
                    "additionalProperties": false
                  }
                },
                "id": {
                  "type": "string"
                },
                "latestUpdate": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        }
                      },
                      "required": ["at", "description"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "proNumber": {
                  "type": ["string", "null"]
                },
                "quote": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        }
                      },
                      "required": ["amount", "currency"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "recipientName": {
                  "type": ["string", "null"]
                },
                "reference": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending-pickup",
                    "in-transit",
                    "delivered",
                    "exception",
                    "unknown"
                  ]
                },
                "trackingNumber": {
                  "type": ["string", "null"]
                }
              },
              "required": [
                "carrier",
                "customerReference",
                "destination",
                "documents",
                "id",
                "latestUpdate",
                "proNumber",
                "quote",
                "recipientName",
                "reference",
                "status",
                "trackingNumber"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List freight",
      "operation": "listFreight"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export inventory as CSV",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "q": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "inventory_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          }
        },
        "required": ["content", "filename"],
        "additionalProperties": false
      },
      "title": "Export inventory",
      "operation": "exportInventory"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List inventory",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "q": {
            "type": "string",
            "maxLength": 200
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "inventory_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "aliases": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "alias": {
                        "type": "string"
                      },
                      "storeRef": {
                        "type": "string"
                      }
                    },
                    "required": ["alias", "storeRef"],
                    "additionalProperties": false
                  }
                },
                "baseSku": {
                  "type": "string"
                },
                "binding": {
                  "type": "string",
                  "enum": ["verified", "unproved"]
                },
                "condition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": ["string", "null"]
                },
                "sku": {
                  "type": ["string", "null"]
                },
                "stock": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "example": null
                    },
                    "committed": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "example": null
                    },
                    "physical": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "example": null
                    }
                  },
                  "required": ["available", "committed", "physical"],
                  "additionalProperties": false
                },
                "bundleCapacity": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "matchedAlias": {
                  "type": ["string", "null"]
                },
                "weight": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "unit": {
                          "type": ["string", "null"]
                        },
                        "value": {
                          "type": ["number", "null"]
                        }
                      },
                      "required": ["unit", "value"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "aliases",
                "baseSku",
                "binding",
                "condition",
                "id",
                "name",
                "sku",
                "stock",
                "matchedAlias",
                "weight"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List inventory",
      "operation": "listInventory"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Cancel an invitation",
      "inputSchema": {
        "type": "object",
        "properties": {
          "invitationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["invitationId", "organizationId", "submissionKey"],
        "additionalProperties": false
      },
      "name": "invitations_cancel",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "invitation": {
            "type": "object",
            "properties": {
              "createdAt": {
                "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))$"
              },
              "email": {
                "type": "string"
              },
              "expiresAt": {
                "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))$"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "role": {
                "type": "string",
                "enum": ["viewer", "member", "admin", "owner"]
              },
              "status": {
                "type": "string",
                "enum": ["pending", "accepted", "canceled"]
              }
            },
            "required": [
              "createdAt",
              "email",
              "expiresAt",
              "id",
              "role",
              "status"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "invitation"],
        "additionalProperties": false
      },
      "title": "Cancel an invitation",
      "operation": "cancelInvitation"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Invite a team member",
      "inputSchema": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "role": {
            "type": "string",
            "enum": ["viewer", "member", "admin", "owner"]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["email", "organizationId", "role", "submissionKey"],
        "additionalProperties": false
      },
      "name": "invitations_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "invitation": {
            "type": "object",
            "properties": {
              "createdAt": {
                "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))$"
              },
              "email": {
                "type": "string"
              },
              "expiresAt": {
                "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))$"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "role": {
                "type": "string",
                "enum": ["viewer", "member", "admin", "owner"]
              },
              "status": {
                "type": "string",
                "enum": ["pending", "accepted", "canceled"]
              }
            },
            "required": [
              "createdAt",
              "email",
              "expiresAt",
              "id",
              "role",
              "status"
            ],
            "additionalProperties": false
          },
          "invitationEmail": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "provider_accepted"
              }
            },
            "required": ["status"],
            "additionalProperties": false
          }
        },
        "required": [
          "effects",
          "operationId",
          "outcome",
          "invitation",
          "invitationEmail"
        ],
        "additionalProperties": false
      },
      "title": "Invite a team member",
      "operation": "createInvitation"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List pending invitations",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "invitations_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "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))$"
                },
                "email": {
                  "type": "string"
                },
                "expiresAt": {
                  "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))$"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "role": {
                  "type": "string",
                  "enum": ["viewer", "member", "admin", "owner"]
                },
                "status": {
                  "type": "string",
                  "enum": ["pending", "accepted", "canceled"]
                }
              },
              "required": [
                "createdAt",
                "email",
                "expiresAt",
                "id",
                "role",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List pending invitations",
      "operation": "listInvitations"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List your invitations",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "name": "invitations_list_incoming",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "expiresAt": {
                  "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))$"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "organizationId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "organizationName": {
                  "type": "string"
                },
                "role": {
                  "type": "string",
                  "enum": ["viewer", "member", "admin", "owner"]
                }
              },
              "required": [
                "expiresAt",
                "id",
                "organizationId",
                "organizationName",
                "role"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List your invitations",
      "operation": "listIncomingInvitations"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export invoice lines",
      "inputSchema": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^in_[A-Za-z0-9_]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["invoiceId", "organizationId"],
        "additionalProperties": false
      },
      "name": "invoice_lines_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "csv": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "lineCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "mediaType": {
            "type": "string",
            "const": "text/csv"
          }
        },
        "required": ["csv", "filename", "lineCount", "mediaType"],
        "additionalProperties": false
      },
      "title": "Export invoice lines",
      "operation": "exportInvoiceLines"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List invoice lines",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "invoiceId": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^in_[A-Za-z0-9_]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["invoiceId", "organizationId"],
        "additionalProperties": false
      },
      "name": "invoice_lines_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "description": {
                  "type": ["string", "null"]
                },
                "id": {
                  "type": "string"
                },
                "periodEndsAt": {
                  "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))$"
                },
                "periodStartsAt": {
                  "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))$"
                },
                "proration": {
                  "type": "boolean"
                },
                "quantity": {
                  "type": ["number", "null"]
                }
              },
              "required": [
                "amount",
                "currency",
                "description",
                "id",
                "periodEndsAt",
                "periodStartsAt",
                "proration",
                "quantity"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List invoice lines",
      "operation": "listInvoiceLines"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get an invoice service summary",
      "inputSchema": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^in_[A-Za-z0-9_]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["invoiceId", "organizationId"],
        "additionalProperties": false
      },
      "name": "invoice_service_summary_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "adjustments": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "kind": {
                      "type": "string",
                      "const": "charge_correction"
                    },
                    "lineId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": ["string", "null"]
                    },
                    "serviceDate": {
                      "type": "string",
                      "format": "date",
                      "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])))$"
                    },
                    "serviceName": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "amount",
                    "kind",
                    "lineId",
                    "reason",
                    "serviceDate",
                    "serviceName"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "creditNoteId": {
                      "type": "string"
                    },
                    "issuedAt": {
                      "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))$"
                    },
                    "kind": {
                      "type": "string",
                      "const": "credit_note"
                    },
                    "memo": {
                      "type": ["string", "null"]
                    },
                    "number": {
                      "type": "string"
                    },
                    "reason": {
                      "type": ["string", "null"]
                    },
                    "serviceName": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": [
                    "amount",
                    "creditNoteId",
                    "issuedAt",
                    "kind",
                    "memo",
                    "number",
                    "reason",
                    "serviceName"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "invoice": {
            "type": "object",
            "properties": {
              "finalizedAt": {
                "anyOf": [
                  {
                    "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))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string",
                "maxLength": 255,
                "pattern": "^in_[A-Za-z0-9_]+$"
              },
              "invoiceDate": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "number": {
                "type": ["string", "null"]
              },
              "state": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "stage": {
                        "type": "string",
                        "const": "draft"
                      }
                    },
                    "required": ["stage"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "stage": {
                        "type": "string",
                        "const": "issued"
                      },
                      "status": {
                        "type": "string",
                        "enum": ["open", "paid", "uncollectible", "void"]
                      }
                    },
                    "required": ["stage", "status"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "stage": {
                        "type": "string",
                        "const": "unrecognized"
                      }
                    },
                    "required": ["stage"],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": ["finalizedAt", "id", "invoiceDate", "number", "state"],
            "additionalProperties": false
          },
          "reconciliation": {
            "type": "object",
            "properties": {
              "amountMismatchLineIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "invoiceTotal": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "reconciled": {
                "type": "boolean"
              },
              "summaryTotal": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "unattributedAmount": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "unattributedLineCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "amountMismatchLineIds",
              "invoiceTotal",
              "reconciled",
              "summaryTotal",
              "unattributedAmount",
              "unattributedLineCount"
            ],
            "additionalProperties": false
          },
          "servicePeriod": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "endDate": {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "invoice_metadata",
                      "charge_service_dates",
                      "invoice_line_periods"
                    ]
                  },
                  "startDate": {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  },
                  "status": {
                    "type": "string",
                    "const": "known"
                  }
                },
                "required": ["endDate", "source", "startDate", "status"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "const": "unknown"
                  }
                },
                "required": ["status"],
                "additionalProperties": false
              }
            ]
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "firstServiceDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "lastServiceDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "lines": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "description": {
                        "type": ["string", "null"]
                      },
                      "lineId": {
                        "type": "string"
                      },
                      "quantity": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+(\\.\\d+)?$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "rate": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+(\\.\\d+)?$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "references": {
                        "type": "object",
                        "properties": {
                          "orderNumbers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "purchaseOrderNumbers": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": ["orderNumbers", "purchaseOrderNumbers"],
                        "additionalProperties": false
                      },
                      "serviceDate": {
                        "type": "string",
                        "format": "date",
                        "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])))$"
                      }
                    },
                    "required": [
                      "amount",
                      "description",
                      "lineId",
                      "quantity",
                      "rate",
                      "references",
                      "serviceDate"
                    ],
                    "additionalProperties": false
                  }
                },
                "quantity": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^-?\\d+(\\.\\d+)?$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rate": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^-?\\d+(\\.\\d+)?$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "serviceName": {
                  "type": "string"
                },
                "unit": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "unit",
                        "order",
                        "package",
                        "pack",
                        "case",
                        "pick_line",
                        "shipment",
                        "pallet",
                        "position",
                        "sku",
                        "box",
                        "card",
                        "program",
                        "hour",
                        "day",
                        "month",
                        "cubic_foot_year",
                        "cost_amount",
                        "value_amount"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "amount",
                "firstServiceDate",
                "lastServiceDate",
                "lines",
                "quantity",
                "rate",
                "serviceName",
                "unit"
              ],
              "additionalProperties": false
            }
          },
          "terms": {
            "type": "object",
            "properties": {
              "disputeWindow": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "days": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "deadline": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date",
                            "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])))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "type": "string",
                        "const": "known"
                      }
                    },
                    "required": ["days", "deadline", "status"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "const": "missing"
                      }
                    },
                    "required": ["status"],
                    "additionalProperties": false
                  }
                ]
              },
              "paymentTerms": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "days": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "label": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "const": "known"
                      }
                    },
                    "required": ["days", "label", "status"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "const": "missing"
                      }
                    },
                    "required": ["status"],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": ["disputeWindow", "paymentTerms"],
            "additionalProperties": false
          },
          "totals": {
            "type": "object",
            "properties": {
              "chargeCorrections": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "creditNotes": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "subtotal": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "totalAfterCredits": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "chargeCorrections",
              "creditNotes",
              "subtotal",
              "total",
              "totalAfterCredits"
            ],
            "additionalProperties": false
          },
          "unattributedLines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "description": {
                  "type": ["string", "null"]
                },
                "lineId": {
                  "type": "string"
                },
                "periodEndDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "periodStartDate": {
                  "type": "string",
                  "format": "date",
                  "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])))$"
                },
                "quantity": {
                  "type": ["number", "null"]
                }
              },
              "required": [
                "amount",
                "description",
                "lineId",
                "periodEndDate",
                "periodStartDate",
                "quantity"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "adjustments",
          "currency",
          "invoice",
          "reconciliation",
          "servicePeriod",
          "services",
          "terms",
          "totals",
          "unattributedLines"
        ],
        "additionalProperties": false
      },
      "title": "Get invoice service summary",
      "operation": "getInvoiceServiceSummary"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get an invoice",
      "inputSchema": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^in_[A-Za-z0-9_]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["invoiceId", "organizationId"],
        "additionalProperties": false
      },
      "name": "invoices_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "amountDue": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "amountPaid": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "amountRemaining": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "createdAt": {
            "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))$"
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "dueAt": {
            "anyOf": [
              {
                "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))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "finalizedAt": {
            "anyOf": [
              {
                "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))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^in_[A-Za-z0-9_]+$"
          },
          "number": {
            "type": ["string", "null"]
          },
          "paidAt": {
            "anyOf": [
              {
                "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))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "periodEndsAt": {
            "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))$"
          },
          "periodStartsAt": {
            "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))$"
          },
          "state": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "stage": {
                    "type": "string",
                    "const": "draft"
                  }
                },
                "required": ["stage"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "stage": {
                    "type": "string",
                    "const": "issued"
                  },
                  "status": {
                    "type": "string",
                    "enum": ["open", "paid", "uncollectible", "void"]
                  }
                },
                "required": ["stage", "status"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "stage": {
                    "type": "string",
                    "const": "unrecognized"
                  }
                },
                "required": ["stage"],
                "additionalProperties": false
              }
            ]
          },
          "subscription": {
            "type": "boolean"
          },
          "subtotal": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "total": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "hostedInvoiceUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "postPaymentCreditNotesAmount": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "prePaymentCreditNotesAmount": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "amountDue",
          "amountPaid",
          "amountRemaining",
          "createdAt",
          "currency",
          "dueAt",
          "finalizedAt",
          "id",
          "number",
          "paidAt",
          "periodEndsAt",
          "periodStartsAt",
          "state",
          "subtotal",
          "total",
          "hostedInvoiceUrl",
          "postPaymentCreditNotesAmount",
          "prePaymentCreditNotesAmount"
        ],
        "additionalProperties": false
      },
      "title": "Get invoice",
      "operation": "getInvoice"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List invoices",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "status": {
            "type": "string",
            "enum": ["draft", "open", "paid", "uncollectible", "void"]
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "invoices_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amountDue": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "amountPaid": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "amountRemaining": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "createdAt": {
                  "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))$"
                },
                "currency": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "dueAt": {
                  "anyOf": [
                    {
                      "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))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "finalizedAt": {
                  "anyOf": [
                    {
                      "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))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "type": "string",
                  "maxLength": 255,
                  "pattern": "^in_[A-Za-z0-9_]+$"
                },
                "number": {
                  "type": ["string", "null"]
                },
                "paidAt": {
                  "anyOf": [
                    {
                      "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))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "periodEndsAt": {
                  "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))$"
                },
                "periodStartsAt": {
                  "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))$"
                },
                "state": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "stage": {
                          "type": "string",
                          "const": "draft"
                        }
                      },
                      "required": ["stage"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "stage": {
                          "type": "string",
                          "const": "issued"
                        },
                        "status": {
                          "type": "string",
                          "enum": ["open", "paid", "uncollectible", "void"]
                        }
                      },
                      "required": ["stage", "status"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "stage": {
                          "type": "string",
                          "const": "unrecognized"
                        }
                      },
                      "required": ["stage"],
                      "additionalProperties": false
                    }
                  ]
                },
                "subscription": {
                  "type": "boolean"
                },
                "subtotal": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "total": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "amountDue",
                "amountPaid",
                "amountRemaining",
                "createdAt",
                "currency",
                "dueAt",
                "finalizedAt",
                "id",
                "number",
                "paidAt",
                "periodEndsAt",
                "periodStartsAt",
                "state",
                "subtotal",
                "total"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List invoices",
      "operation": "listInvoices"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Accept an invitation or enroll a verified person",
      "inputSchema": {
        "type": "object",
        "properties": {
          "externalSubject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "invitationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "role": {
            "type": "string",
            "enum": ["viewer", "member", "admin", "owner"]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["submissionKey"],
        "additionalProperties": false
      },
      "name": "members_grant",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "membership": {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "joinedAt": {
                "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))$"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": ["viewer", "member", "admin", "owner"]
              }
            },
            "required": ["email", "id", "joinedAt", "name", "role"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "membership"],
        "additionalProperties": false
      },
      "title": "Grant a membership",
      "operation": "grantMembership"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List team members",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "members_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string"
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "joinedAt": {
                  "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))$"
                },
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": "string",
                  "enum": ["viewer", "member", "admin", "owner"]
                }
              },
              "required": ["email", "id", "joinedAt", "name", "role"],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List team members",
      "operation": "listMembers"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Remove a member",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRole": {
            "type": "string",
            "enum": ["viewer", "member", "admin", "owner"]
          },
          "membershipId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRole",
          "membershipId",
          "organizationId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "members_remove",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "membershipId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["effects", "operationId", "outcome", "membershipId"],
        "additionalProperties": false
      },
      "title": "Remove a member",
      "operation": "removeMembership"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Change a member's role",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRole": {
            "type": "string",
            "enum": ["viewer", "member", "admin", "owner"]
          },
          "membershipId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "role": {
            "type": "string",
            "enum": ["viewer", "member", "admin", "owner"]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRole",
          "membershipId",
          "organizationId",
          "role",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "members_update",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "membership": {
            "type": "object",
            "properties": {
              "email": {
                "type": "string"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "joinedAt": {
                "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))$"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": ["viewer", "member", "admin", "owner"]
              }
            },
            "required": ["email", "id", "joinedAt", "name", "role"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "membership"],
        "additionalProperties": false
      },
      "title": "Change a member's role",
      "operation": "updateMembershipRole"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List published openings or explicitly inspect revisions",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "includeRevisions": {
            "default": false,
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "string",
                "pattern": "^(?:[tT][rR][uU][eE]|[fF][aA][lL][sS][eE])$"
              }
            ]
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "opening_revisions_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "deleted": {
                  "type": "boolean"
                },
                "published": {
                  "type": "boolean"
                },
                "createdAt": {
                  "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))$"
                },
                "openingRef": {
                  "type": "string",
                  "minLength": 1
                },
                "recordedAt": {
                  "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))$"
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "rows": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "assessedCondition": {
                        "type": "string",
                        "enum": [
                          "dmg",
                          "hp",
                          "lp",
                          "mp",
                          "nm",
                          "no_damage_found"
                        ]
                      },
                      "baseSkuSnapshot": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "externalCatalogRef": {
                        "type": "string",
                        "minLength": 1
                      },
                      "position": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "productBindingId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "pattern": "^[A-Za-z0-9_-]+$"
                      },
                      "providerSkuSnapshot": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "serial": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9999
                              },
                              "run": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9999
                              }
                            },
                            "required": ["number", "run"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "variantBindingId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[A-Za-z0-9_-]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "assessedCondition",
                      "externalCatalogRef",
                      "position",
                      "productBindingId",
                      "variantBindingId"
                    ],
                    "additionalProperties": false
                  }
                },
                "supplyPurchaseOrderId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                }
              },
              "required": [
                "deleted",
                "published",
                "createdAt",
                "openingRef",
                "recordedAt",
                "revision",
                "rows",
                "supplyPurchaseOrderId"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List opening revisions",
      "operation": "listOpeningFeed"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a Warehouse operation outcome",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["operationId"],
        "additionalProperties": false
      },
      "name": "operations_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "createdAt": {
            "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))$"
          },
          "evidence": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "operation": {
            "type": "string"
          },
          "operationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "outcome": {
            "type": "string",
            "enum": ["confirmed", "pending", "rejected", "unknown"]
          },
          "outcomeRecordedAt": {
            "anyOf": [
              {
                "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))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "requiredEffects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "view": {
            "type": "string",
            "const": "customer"
          }
        },
        "required": [
          "createdAt",
          "evidence",
          "operation",
          "operationId",
          "outcome",
          "outcomeRecordedAt",
          "requiredEffects",
          "view"
        ],
        "additionalProperties": false
      },
      "title": "Get operation outcome",
      "operation": "getWarehouseOperationOutcome"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Recheck and save edited order import values",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedGroupRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "expectedReviewId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "expectedReviewRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "groupId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "importId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "items": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 500
                },
                "quantityText": {
                  "type": "string",
                  "maxLength": 100
                },
                "sku": {
                  "type": "string",
                  "maxLength": 500
                },
                "sourceGroup": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": ["name", "quantityText", "sku", "sourceGroup"],
              "additionalProperties": false
            }
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": "string",
                "maxLength": 500
              },
              "addressLine2": {
                "type": "string",
                "maxLength": 500
              },
              "city": {
                "type": "string",
                "maxLength": 200
              },
              "company": {
                "type": "string",
                "maxLength": 200
              },
              "country": {
                "type": "string",
                "maxLength": 200
              },
              "email": {
                "type": "string",
                "maxLength": 200
              },
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "phone": {
                "type": "string",
                "maxLength": 200
              },
              "postalCode": {
                "type": "string",
                "maxLength": 200
              },
              "region": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "addressLine1",
              "addressLine2",
              "city",
              "company",
              "country",
              "email",
              "name",
              "phone",
              "postalCode",
              "region"
            ],
            "additionalProperties": false
          },
          "sourceRow": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "expectedGroupRevision",
          "expectedReviewId",
          "expectedReviewRevision",
          "groupId",
          "importId",
          "organizationId",
          "recipient",
          "sourceRow"
        ],
        "additionalProperties": false
      },
      "name": "order_import_groups_revise",
      "outputSchema": {
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "groupRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "mapping": {
                  "type": "string",
                  "enum": ["ambiguous", "missing", "matched"]
                },
                "name": {
                  "type": "string"
                },
                "productId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantity": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantityText": {
                  "type": "string"
                },
                "sku": {
                  "type": "string"
                },
                "sourceGroup": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "mapping",
                "name",
                "productId",
                "quantity",
                "sku",
                "sourceGroup"
              ],
              "additionalProperties": false
            }
          },
          "review": {
            "type": "object",
            "properties": {
              "address": {
                "type": "object",
                "properties": {
                  "addressLine1": {
                    "type": "string"
                  },
                  "addressLine2": {
                    "type": "string"
                  },
                  "city": {
                    "type": "string"
                  },
                  "company": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "postalCode": {
                    "type": "string"
                  },
                  "region": {
                    "type": "string"
                  },
                  "candidate": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "addressLine1": {
                            "type": "string"
                          },
                          "addressLine2": {
                            "type": "string"
                          },
                          "city": {
                            "type": "string"
                          },
                          "company": {
                            "type": "string"
                          },
                          "country": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "phone": {
                            "type": "string"
                          },
                          "postalCode": {
                            "type": "string"
                          },
                          "region": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "addressLine1",
                          "addressLine2",
                          "city",
                          "company",
                          "country",
                          "email",
                          "name",
                          "phone",
                          "postalCode",
                          "region"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": ["string", "null"]
                      },
                      "field": {
                        "type": ["string", "null"]
                      },
                      "outcome": {
                        "type": "string",
                        "enum": [
                          "accepted",
                          "not_run",
                          "rejected",
                          "unavailable"
                        ]
                      },
                      "rateCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "requestId": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": [
                      "code",
                      "field",
                      "outcome",
                      "rateCount",
                      "requestId"
                    ],
                    "additionalProperties": false
                  },
                  "reason": {
                    "type": ["string", "null"]
                  },
                  "selected": {
                    "type": "string",
                    "enum": ["edited", "original"]
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "invalid-required-field",
                      "needs-review",
                      "passed-unchanged",
                      "provider-unavailable"
                    ]
                  }
                },
                "required": [
                  "addressLine1",
                  "addressLine2",
                  "city",
                  "company",
                  "country",
                  "email",
                  "name",
                  "phone",
                  "postalCode",
                  "region",
                  "candidate",
                  "provider",
                  "reason",
                  "selected",
                  "state"
                ],
                "additionalProperties": false
              },
              "autoAdvance": {
                "type": "boolean"
              },
              "eligibility": {
                "type": "string",
                "enum": ["ineligible", "ready", "unavailable"]
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "products": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "productId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "revision": {
                      "type": ["string", "null"]
                    },
                    "sku": {
                      "type": ["string", "null"]
                    },
                    "weight": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "unit": {
                              "type": "string"
                            },
                            "value": {
                              "type": "number"
                            }
                          },
                          "required": ["unit", "value"],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["productId", "revision", "sku", "weight"],
                  "additionalProperties": false
                }
              },
              "reviewId": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "address",
              "autoAdvance",
              "eligibility",
              "issues",
              "products",
              "reviewId"
            ],
            "additionalProperties": false
          },
          "reviewId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "reviewRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "sourceIdentity": {
            "type": "string"
          },
          "sourceOrderId": {
            "type": ["string", "null"]
          },
          "sourceRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "sourceRow": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "groupId",
          "groupRevision",
          "items",
          "review",
          "reviewId",
          "reviewRevision",
          "sourceIdentity",
          "sourceOrderId",
          "sourceRevision",
          "sourceRow"
        ],
        "additionalProperties": false
      },
      "title": "Revise order import group",
      "operation": "reviseOrderImportGroup"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Preview a CSV or JSON order import",
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 2500
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "rateContext": {
            "type": "object",
            "properties": {
              "carrierIds": {
                "minItems": 1,
                "maxItems": 25,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                }
              },
              "shipFrom": {
                "type": "object",
                "properties": {
                  "addressLine1": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "addressLine2": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "city": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "company": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "country": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "postalCode": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "region": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "addressLine1",
                  "addressLine2",
                  "city",
                  "company",
                  "country",
                  "email",
                  "name",
                  "phone",
                  "postalCode",
                  "region"
                ],
                "additionalProperties": false
              }
            },
            "required": ["carrierIds", "shipFrom"],
            "additionalProperties": false
          },
          "source": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 666668
                  },
                  "encoding": {
                    "type": "string",
                    "enum": ["utf-8", "windows-1252"]
                  },
                  "format": {
                    "type": "string",
                    "const": "mailing_csv"
                  }
                },
                "required": ["contentBase64", "encoding", "format"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 666668
                  },
                  "encoding": {
                    "type": "string",
                    "enum": ["utf-8", "windows-1252"]
                  },
                  "format": {
                    "type": "string",
                    "enum": ["original_47_column_csv"]
                  }
                },
                "required": ["contentBase64", "encoding", "format"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "format": {
                    "type": "string",
                    "const": "json"
                  },
                  "orders": {
                    "minItems": 1,
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "minItems": 1,
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "maxLength": 500
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 100000
                              },
                              "sku": {
                                "type": "string",
                                "maxLength": 500
                              }
                            },
                            "required": ["name", "quantity", "sku"],
                            "additionalProperties": false
                          }
                        },
                        "recipient": {
                          "type": "object",
                          "properties": {
                            "addressLine1": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "addressLine2": {
                              "type": "string",
                              "maxLength": 500
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "company": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "country": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "email": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "name": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "phone": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "region": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "required": [
                            "addressLine1",
                            "addressLine2",
                            "city",
                            "company",
                            "country",
                            "email",
                            "name",
                            "phone",
                            "postalCode",
                            "region"
                          ],
                          "additionalProperties": false
                        },
                        "sourceOrderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 200
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["items", "recipient", "sourceOrderId"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["format", "orders"],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": ["organizationId", "rateContext", "source"],
        "additionalProperties": false
      },
      "name": "order_imports_preview",
      "outputSchema": {
        "type": "object",
        "properties": {
          "nextOffset": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groupId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "groupRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "mapping": {
                        "type": "string",
                        "enum": ["ambiguous", "missing", "matched"]
                      },
                      "name": {
                        "type": "string"
                      },
                      "productId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[A-Za-z0-9_-]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "quantity": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "quantityText": {
                        "type": "string"
                      },
                      "sku": {
                        "type": "string"
                      },
                      "sourceGroup": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "mapping",
                      "name",
                      "productId",
                      "quantity",
                      "sku",
                      "sourceGroup"
                    ],
                    "additionalProperties": false
                  }
                },
                "review": {
                  "type": "object",
                  "properties": {
                    "address": {
                      "type": "object",
                      "properties": {
                        "addressLine1": {
                          "type": "string"
                        },
                        "addressLine2": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "company": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "phone": {
                          "type": "string"
                        },
                        "postalCode": {
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "candidate": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "addressLine1": {
                                  "type": "string"
                                },
                                "addressLine2": {
                                  "type": "string"
                                },
                                "city": {
                                  "type": "string"
                                },
                                "company": {
                                  "type": "string"
                                },
                                "country": {
                                  "type": "string"
                                },
                                "email": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "phone": {
                                  "type": "string"
                                },
                                "postalCode": {
                                  "type": "string"
                                },
                                "region": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "addressLine1",
                                "addressLine2",
                                "city",
                                "company",
                                "country",
                                "email",
                                "name",
                                "phone",
                                "postalCode",
                                "region"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "provider": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "type": ["string", "null"]
                            },
                            "field": {
                              "type": ["string", "null"]
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "accepted",
                                "not_run",
                                "rejected",
                                "unavailable"
                              ]
                            },
                            "rateCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "requestId": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": [
                            "code",
                            "field",
                            "outcome",
                            "rateCount",
                            "requestId"
                          ],
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": ["string", "null"]
                        },
                        "selected": {
                          "type": "string",
                          "enum": ["edited", "original"]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "invalid-required-field",
                            "needs-review",
                            "passed-unchanged",
                            "provider-unavailable"
                          ]
                        }
                      },
                      "required": [
                        "addressLine1",
                        "addressLine2",
                        "city",
                        "company",
                        "country",
                        "email",
                        "name",
                        "phone",
                        "postalCode",
                        "region",
                        "candidate",
                        "provider",
                        "reason",
                        "selected",
                        "state"
                      ],
                      "additionalProperties": false
                    },
                    "autoAdvance": {
                      "type": "boolean"
                    },
                    "eligibility": {
                      "type": "string",
                      "enum": ["ineligible", "ready", "unavailable"]
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "productId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[A-Za-z0-9_-]+$"
                          },
                          "revision": {
                            "type": ["string", "null"]
                          },
                          "sku": {
                            "type": ["string", "null"]
                          },
                          "weight": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "number"
                                  }
                                },
                                "required": ["unit", "value"],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": ["productId", "revision", "sku", "weight"],
                        "additionalProperties": false
                      }
                    },
                    "reviewId": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{64}$"
                    }
                  },
                  "required": [
                    "address",
                    "autoAdvance",
                    "eligibility",
                    "issues",
                    "products",
                    "reviewId"
                  ],
                  "additionalProperties": false
                },
                "reviewRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "sourceOrderId": {
                  "type": ["string", "null"]
                },
                "sourceRow": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "submitted": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "outcome": {
                          "type": "string",
                          "enum": ["confirmed", "unknown"]
                        },
                        "visibleOrderNumber": {
                          "type": ["string", "null"]
                        }
                      },
                      "required": ["outcome", "visibleOrderNumber"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unmapped": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "required": ["column", "value"],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "groupId",
                "groupRevision",
                "items",
                "review",
                "reviewRevision",
                "sourceOrderId",
                "sourceRow",
                "submitted",
                "unmapped"
              ],
              "additionalProperties": false
            }
          },
          "source": {
            "type": "object",
            "properties": {
              "columns": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "encoding": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["utf-8", "windows-1252"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "format": {
                "type": "string",
                "description": "Stored import format. The returned identifier may differ from the format sent in the request."
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "sourceHash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "totalRows": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "columns",
              "encoding",
              "format",
              "id",
              "revision",
              "sourceHash",
              "totalRows"
            ],
            "additionalProperties": false
          }
        },
        "required": ["nextOffset", "rows", "source"],
        "additionalProperties": false
      },
      "title": "Preview order import",
      "operation": "previewOrderImport"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get order import review and results",
      "inputSchema": {
        "type": "object",
        "properties": {
          "importId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["importId", "organizationId"],
        "additionalProperties": false
      },
      "name": "order_imports_results",
      "outputSchema": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "encoding": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["utf-8", "windows-1252"]
              },
              {
                "type": "null"
              }
            ]
          },
          "format": {
            "type": "string",
            "description": "Stored import format. The returned identifier may differ from the format sent in the request."
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groupRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "outcome": {
                  "type": "string",
                  "enum": ["pending", "confirmed", "rejected", "unknown"]
                },
                "resultRefs": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "orderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^[A-Za-z0-9_-]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "providerOrderRef": {
                          "type": ["string", "null"]
                        },
                        "visibleOrderNumber": {
                          "type": ["string", "null"]
                        }
                      },
                      "required": [
                        "orderId",
                        "providerOrderRef",
                        "visibleOrderNumber"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "review": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "reviewId": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "reviewRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "sourceIdentity": {
                  "type": "string"
                },
                "sourceOrderId": {
                  "type": ["string", "null"]
                },
                "sourceRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "sourceRow": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "groupRevision",
                "id",
                "outcome",
                "resultRefs",
                "review",
                "reviewId",
                "reviewRevision",
                "sourceIdentity",
                "sourceOrderId",
                "sourceRevision",
                "sourceRow"
              ],
              "additionalProperties": false
            }
          },
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "sourceHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "sourceRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "columns",
          "encoding",
          "format",
          "groups",
          "id",
          "organizationId",
          "sourceHash",
          "sourceRevision"
        ],
        "additionalProperties": false
      },
      "title": "Get order import results",
      "operation": "getOrderImportResults"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Submit an exact reviewed order import set",
      "inputSchema": {
        "type": "object",
        "properties": {
          "importId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "selectedGroups": {
            "minItems": 1,
            "maxItems": 2500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groupId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "groupRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "reviewId": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "reviewRevision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "sourceRow": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "groupId",
                "groupRevision",
                "reviewId",
                "reviewRevision",
                "sourceRow"
              ],
              "additionalProperties": false
            }
          },
          "submissionKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": [
          "importId",
          "organizationId",
          "selectedGroups",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "order_imports_submit",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groupId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "order": {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "providerOrderRef": {
                      "type": ["string", "null"]
                    },
                    "visibleOrderNumber": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": [
                    "orderId",
                    "providerOrderRef",
                    "visibleOrderNumber"
                  ],
                  "additionalProperties": false
                },
                "sourceOrderId": {
                  "type": ["string", "null"]
                },
                "sourceRow": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": ["groupId", "order", "sourceOrderId", "sourceRow"],
              "additionalProperties": false
            }
          },
          "importId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "operationId": {
            "type": "string"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "submissionKey": {
            "type": "string"
          }
        },
        "required": [
          "effects",
          "groups",
          "importId",
          "operationId",
          "organizationId",
          "outcome",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "title": "Submit order import",
      "operation": "submitOrderImport"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Reads 1–20 known order IDs in request order using the same customer-safe recipient, status and tracking facts as each individual order read. Duplicate IDs repeat the same result and are read once. Foreign or missing IDs return missing. A provider-unavailable item returns unavailable with retryAfterSeconds when validated timing is available; wait that long before polling that ID again. An available order can still have null current facts when the warehouse no longer reports it. Read-capable organization keys may use this operation within their immutable organization and mode. Provider budgets and current authority still apply. An available redemption includes the same packingException as getOrder, so a batch read is the discovery path for packing exceptions: poll every redemption that has not shipped at least once an hour.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "orderIds": {
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_-]+$"
            }
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["orderIds", "organizationId"],
        "additionalProperties": false
      },
      "name": "orders_batch_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "order": {
                      "type": "object",
                      "properties": {
                        "customerLabel": {
                          "type": ["string", "null"]
                        },
                        "id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "ordinary",
                            "redemption",
                            "reship",
                            "ship_back"
                          ]
                        },
                        "receipt": {
                          "type": "object",
                          "properties": {
                            "operationId": {
                              "type": ["string", "null"]
                            },
                            "recordedAt": {
                              "type": "string"
                            }
                          },
                          "required": ["operationId", "recordedAt"],
                          "additionalProperties": false
                        },
                        "visibleOrderNumber": {
                          "type": ["string", "null"]
                        },
                        "cancellation": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "deadlineAt": {
                                  "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))$"
                                },
                                "eligible": {
                                  "type": "boolean"
                                }
                              },
                              "required": ["deadlineAt", "eligible"],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "current": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "insurance": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "insured": {
                                          "type": "boolean",
                                          "description": "Whether the order asks the warehouse to insure its one parcel. False is the explicit no-additional-insurance choice."
                                        },
                                        "insuredValue": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string"
                                                },
                                                "currency": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Declared value to insure, independent of goods and customs values. Null when not insured."
                                        },
                                        "label": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "insured": {
                                                  "description": "Whether the warehouse's label reports additional coverage. Null when the label does not report it.",
                                                  "type": ["boolean", "null"]
                                                },
                                                "insuredValue": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "properties": {
                                                        "amount": {
                                                          "type": "string"
                                                        },
                                                        "currency": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "required": [
                                                        "amount",
                                                        "currency"
                                                      ],
                                                      "additionalProperties": false
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "provider": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "enum": [
                                                        "carrier",
                                                        "parcelguard",
                                                        "shipsurance",
                                                        "xcover"
                                                      ]
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "insured",
                                                "insuredValue",
                                                "provider"
                                              ],
                                              "additionalProperties": false,
                                              "description": "Coverage reported by the warehouse's one current label."
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Null until the warehouse buys the one label for this order, or when the order has more than one active shipment."
                                        },
                                        "provider": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "carrier",
                                                "parcelguard",
                                                "shipsurance",
                                                "xcover"
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ],
                                          "description": "Coverage provider. carrier is the carrier's declared-value coverage."
                                        }
                                      },
                                      "required": [
                                        "insured",
                                        "insuredValue",
                                        "label",
                                        "provider"
                                      ],
                                      "additionalProperties": false,
                                      "description": "The reviewed coverage choice on the warehouse order. The quoted premium remains on the shipping quote; Vault does not buy the label."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "requestedDeliveryConfirmation": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "none",
                                        "delivery",
                                        "signature",
                                        "adult_signature",
                                        "direct_signature"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "orderDate": {
                                  "type": ["string", "null"]
                                },
                                "providerOrderNumber": {
                                  "type": ["string", "null"]
                                },
                                "recipientName": {
                                  "type": ["string", "null"]
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "on_hold",
                                    "ready",
                                    "shipped",
                                    "canceled",
                                    "unknown"
                                  ]
                                },
                                "tracking": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "deliveryConfirmation": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "none",
                                              "delivery",
                                              "signature",
                                              "adult_signature",
                                              "direct_signature"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "carrier": {
                                        "type": ["string", "null"]
                                      },
                                      "number": {
                                        "type": "string"
                                      },
                                      "shipDate": {
                                        "type": ["string", "null"]
                                      }
                                    },
                                    "required": [
                                      "carrier",
                                      "number",
                                      "shipDate"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "parcelEvidence": {
                                  "type": "object",
                                  "properties": {
                                    "allParcelsCollected": {
                                      "type": ["boolean", "null"]
                                    },
                                    "coverage": {
                                      "type": "string",
                                      "enum": ["complete", "incomplete"]
                                    },
                                    "membershipObservedAt": {
                                      "anyOf": [
                                        {
                                          "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))$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "state": {
                                      "type": "string",
                                      "enum": [
                                        "confirmed",
                                        "pending",
                                        "incomplete",
                                        "stale",
                                        "unavailable",
                                        "unknown"
                                      ]
                                    },
                                    "parcels": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "id": {
                                            "type": "string"
                                          },
                                          "carrier": {
                                            "type": ["string", "null"]
                                          },
                                          "number": {
                                            "type": "string"
                                          },
                                          "state": {
                                            "type": "string",
                                            "enum": [
                                              "confirmed",
                                              "pending",
                                              "unavailable",
                                              "unknown"
                                            ]
                                          },
                                          "event": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "properties": {
                                                  "detailCode": {
                                                    "type": "string"
                                                  },
                                                  "occurredAt": {
                                                    "anyOf": [
                                                      {
                                                        "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))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "reportedAt": {
                                                    "type": ["string", "null"]
                                                  }
                                                },
                                                "required": [
                                                  "detailCode",
                                                  "occurredAt",
                                                  "reportedAt"
                                                ],
                                                "additionalProperties": false
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "detailCode": {
                                            "type": ["string", "null"]
                                          },
                                          "observedAt": {
                                            "anyOf": [
                                              {
                                                "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))$"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "establishedAt": {
                                            "anyOf": [
                                              {
                                                "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))$"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "refresh": {
                                            "type": "string",
                                            "enum": [
                                              "current",
                                              "unavailable",
                                              "unknown",
                                              "stale"
                                            ]
                                          },
                                          "simulated": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "id",
                                          "carrier",
                                          "number",
                                          "state",
                                          "event",
                                          "detailCode",
                                          "observedAt",
                                          "establishedAt",
                                          "refresh",
                                          "simulated"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "allParcelsCollected",
                                    "coverage",
                                    "membershipObservedAt",
                                    "state",
                                    "parcels"
                                  ],
                                  "additionalProperties": false
                                },
                                "customerNotes": {
                                  "type": ["string", "null"]
                                },
                                "holdUntilDate": {
                                  "type": ["string", "null"]
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "declaredUnitValue": {
                                        "type": ["string", "null"]
                                      },
                                      "name": {
                                        "type": ["string", "null"]
                                      },
                                      "productId": {
                                        "type": ["string", "null"]
                                      },
                                      "quantity": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": -9007199254740991,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sku": {
                                        "type": ["string", "null"]
                                      },
                                      "unitPrice": {
                                        "type": ["string", "null"]
                                      }
                                    },
                                    "required": ["name", "quantity", "sku"],
                                    "additionalProperties": false
                                  }
                                },
                                "recipient": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "city": {
                                          "type": ["string", "null"]
                                        },
                                        "company": {
                                          "type": ["string", "null"]
                                        },
                                        "country": {
                                          "type": ["string", "null"]
                                        },
                                        "email": {
                                          "type": ["string", "null"]
                                        },
                                        "name": {
                                          "type": ["string", "null"]
                                        },
                                        "phone": {
                                          "type": ["string", "null"]
                                        },
                                        "postalCode": {
                                          "type": ["string", "null"]
                                        },
                                        "state": {
                                          "type": ["string", "null"]
                                        },
                                        "street1": {
                                          "type": ["string", "null"]
                                        },
                                        "street2": {
                                          "type": ["string", "null"]
                                        }
                                      },
                                      "required": [
                                        "city",
                                        "company",
                                        "country",
                                        "email",
                                        "name",
                                        "phone",
                                        "postalCode",
                                        "state",
                                        "street1",
                                        "street2"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "revision": {
                                  "type": "string"
                                },
                                "requestedShippingService": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "orderDate",
                                "providerOrderNumber",
                                "recipientName",
                                "status",
                                "tracking",
                                "customerNotes",
                                "holdUntilDate",
                                "items",
                                "recipient",
                                "revision",
                                "requestedShippingService"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "packingException": {
                          "description": "Redemption cards held while packing, each with its offer, response deadline and outcome. Null when no card was held.",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "estimate": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "description": "Estimated total in currency units. Null when a component is not yet known; unknown is never reported as zero.",
                                          "type": ["string", "null"]
                                        },
                                        "asOf": {
                                          "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))$"
                                        },
                                        "basis": {
                                          "type": "string",
                                          "const": "estimate"
                                        },
                                        "complete": {
                                          "type": "boolean",
                                          "description": "True only when every affected unit is applied and the amount is known. False while any unit is not applied, because that card is priced as ordered, and when the amount is null."
                                        },
                                        "components": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "amount": {
                                                "type": ["string", "null"]
                                              },
                                              "code": {
                                                "type": "string"
                                              }
                                            },
                                            "required": ["amount", "code"],
                                            "additionalProperties": false
                                          }
                                        },
                                        "currency": {
                                          "type": "string",
                                          "minLength": 3,
                                          "maxLength": 3
                                        },
                                        "revision": {
                                          "type": "integer",
                                          "minimum": 1,
                                          "maximum": 9007199254740991
                                        }
                                      },
                                      "required": [
                                        "amount",
                                        "asOf",
                                        "basis",
                                        "complete",
                                        "components",
                                        "currency",
                                        "revision"
                                      ],
                                      "additionalProperties": false,
                                      "description": "An estimate only. The billed amount appears on the customer's invoice through ordinary billing."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "id": {
                                  "type": "string"
                                },
                                "recordedAt": {
                                  "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))$"
                                },
                                "resolvedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                },
                                "status": {
                                  "type": "string",
                                  "enum": ["held", "resolved"],
                                  "description": "held keeps the order from shipping until every unit settles."
                                },
                                "units": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "decision": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "answer": {
                                                "type": "string",
                                                "enum": [
                                                  "accept_offer",
                                                  "remove_card"
                                                ]
                                              },
                                              "decidedAt": {
                                                "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))$"
                                              },
                                              "offerRevision": {
                                                "type": "integer",
                                                "minimum": 1,
                                                "maximum": 9007199254740991
                                              },
                                              "operationId": {
                                                "description": "Operation ID of the answer that made this decision. Retry or recover an answer by this ID. Null when the warehouse or the deadline decided.",
                                                "type": ["string", "null"]
                                              },
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "answer",
                                                  "warehouse",
                                                  "deadline_default"
                                                ],
                                                "description": "answer is the customer's own answer; warehouse is a decision the warehouse recorded on the customer's instruction; deadline_default removes the card when the response window closes without one."
                                              }
                                            },
                                            "required": [
                                              "answer",
                                              "decidedAt",
                                              "offerRevision",
                                              "operationId",
                                              "source"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "foundCondition": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "nm",
                                              "lp",
                                              "mp",
                                              "hp",
                                              "dmg",
                                              "no_damage_found"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "id": {
                                        "type": "string"
                                      },
                                      "lineIndex": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "offer": {
                                        "type": "object",
                                        "properties": {
                                          "condition": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "nm",
                                                  "lp",
                                                  "mp",
                                                  "hp",
                                                  "dmg"
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ],
                                            "description": "Condition of the offered replacement card, when graded."
                                          },
                                          "id": {
                                            "type": "string"
                                          },
                                          "kind": {
                                            "type": "string",
                                            "enum": ["replacement", "no_offer"],
                                            "description": "replacement offers one reserved card; no_offer means the only choice is removing the card."
                                          },
                                          "product": {
                                            "description": "The SKU of the offered replacement card, or null for no_offer.",
                                            "type": ["string", "null"]
                                          },
                                          "readableAt": {
                                            "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))$"
                                          },
                                          "responseDeadlineAt": {
                                            "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))$"
                                          },
                                          "revision": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "condition",
                                          "id",
                                          "kind",
                                          "product",
                                          "readableAt",
                                          "responseDeadlineAt",
                                          "revision"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "ordered": {
                                        "type": "object",
                                        "properties": {
                                          "condition": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  "nm",
                                                  "lp",
                                                  "mp",
                                                  "hp",
                                                  "dmg"
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "product": {
                                            "type": "string"
                                          },
                                          "sku": {
                                            "type": ["string", "null"]
                                          }
                                        },
                                        "required": [
                                          "condition",
                                          "product",
                                          "sku"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "outcome": {
                                        "type": "string",
                                        "enum": [
                                          "awaiting_answer",
                                          "received",
                                          "pending",
                                          "applied",
                                          "refused"
                                        ]
                                      },
                                      "packCardOrdinal": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 9007199254740991
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "condition_mismatch",
                                          "missing",
                                          "damaged"
                                        ]
                                      },
                                      "responseDeadlineAt": {
                                        "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))$"
                                      },
                                      "unitIndex": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "decision",
                                      "foundCondition",
                                      "id",
                                      "lineIndex",
                                      "offer",
                                      "ordered",
                                      "outcome",
                                      "packCardOrdinal",
                                      "reason",
                                      "responseDeadlineAt",
                                      "unitIndex"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "estimate",
                                "id",
                                "recordedAt",
                                "resolvedAt",
                                "revision",
                                "status",
                                "units"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceOrderId": {
                          "type": ["string", "null"]
                        }
                      },
                      "required": [
                        "customerLabel",
                        "id",
                        "kind",
                        "receipt",
                        "visibleOrderNumber",
                        "current",
                        "sourceOrderId"
                      ],
                      "additionalProperties": false
                    },
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "status": {
                      "type": "string",
                      "const": "available"
                    }
                  },
                  "required": ["order", "orderId", "status"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "status": {
                      "type": "string",
                      "const": "missing"
                    }
                  },
                  "required": ["orderId", "status"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "retryAfterSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string",
                      "const": "unavailable"
                    }
                  },
                  "required": ["orderId", "status"],
                  "additionalProperties": false
                }
              ]
            }
          }
        },
        "required": ["items"],
        "additionalProperties": false
      },
      "title": "Get orders in batch",
      "operation": "batchGetOrders"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Cancel one whole order using its current expectedRevision and a stable submissionKey. A redemption requires its persisted server hold to remain open strictly before cancellation.deadlineAt; it uses its native On hold order and does not require the ordinary picking acknowledgement. An ordinary order is eligible while it is On hold or Ready with no established shipment and the current customer policy allows cancellation; only a Ready order requires acknowledgePickingMayHaveStarted: true, and an On hold order accepts it without needing it. Vault rechecks native identity, store, revision and absence of an established shipment before a preserved-field cancellation, then confirms only from exact cancelled-order readback and its atomic receipt. An unknown result remains unresolved and is observed without another cancellation write. A successful receipt does not prove stopped physical picking, carrier handoff, refund, token restoration or escrow changes. Shared Test uses only its current simulated realm and never falls back to Live.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "acknowledgePickingMayHaveStarted": {
            "type": "boolean",
            "const": true
          },
          "expectedRevision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "orderId",
          "organizationId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_cancel",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": ["id"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "order"],
        "additionalProperties": false
      },
      "title": "Cancel order",
      "operation": "cancelOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Copy an order on hold",
      "inputSchema": {
        "type": "object",
        "properties": {
          "customerLabel": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "orderKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "orderNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "sourceOrderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "storeLinkId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "storeRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "orderKey",
          "orderNumber",
          "organizationId",
          "sourceOrderId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_copy",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "customerLabel": {
                "type": ["string", "null"]
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": ["ordinary", "redemption", "reship", "ship_back"]
              },
              "receipt": {
                "type": "object",
                "properties": {
                  "operationId": {
                    "type": ["string", "null"]
                  },
                  "recordedAt": {
                    "type": "string"
                  }
                },
                "required": ["operationId", "recordedAt"],
                "additionalProperties": false
              },
              "visibleOrderNumber": {
                "type": ["string", "null"]
              },
              "cancellation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "deadlineAt": {
                        "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))$"
                      },
                      "eligible": {
                        "type": "boolean"
                      }
                    },
                    "required": ["deadlineAt", "eligible"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "insurance": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "insured": {
                                "type": "boolean",
                                "description": "Whether the order asks the warehouse to insure its one parcel. False is the explicit no-additional-insurance choice."
                              },
                              "insuredValue": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["amount", "currency"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Declared value to insure, independent of goods and customs values. Null when not insured."
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "insured": {
                                        "description": "Whether the warehouse's label reports additional coverage. Null when the label does not report it.",
                                        "type": ["boolean", "null"]
                                      },
                                      "insuredValue": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "amount": {
                                                "type": "string"
                                              },
                                              "currency": {
                                                "type": "string"
                                              }
                                            },
                                            "required": ["amount", "currency"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "provider": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "carrier",
                                              "parcelguard",
                                              "shipsurance",
                                              "xcover"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "insured",
                                      "insuredValue",
                                      "provider"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Coverage reported by the warehouse's one current label."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Null until the warehouse buys the one label for this order, or when the order has more than one active shipment."
                              },
                              "provider": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "carrier",
                                      "parcelguard",
                                      "shipsurance",
                                      "xcover"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Coverage provider. carrier is the carrier's declared-value coverage."
                              }
                            },
                            "required": [
                              "insured",
                              "insuredValue",
                              "label",
                              "provider"
                            ],
                            "additionalProperties": false,
                            "description": "The reviewed coverage choice on the warehouse order. The quoted premium remains on the shipping quote; Vault does not buy the label."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requestedDeliveryConfirmation": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "none",
                              "delivery",
                              "signature",
                              "adult_signature",
                              "direct_signature"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "orderDate": {
                        "type": ["string", "null"]
                      },
                      "providerOrderNumber": {
                        "type": ["string", "null"]
                      },
                      "recipientName": {
                        "type": ["string", "null"]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "on_hold",
                          "ready",
                          "shipped",
                          "canceled",
                          "unknown"
                        ]
                      },
                      "tracking": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "deliveryConfirmation": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "delivery",
                                    "signature",
                                    "adult_signature",
                                    "direct_signature"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "carrier": {
                              "type": ["string", "null"]
                            },
                            "number": {
                              "type": "string"
                            },
                            "shipDate": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["carrier", "number", "shipDate"],
                          "additionalProperties": false
                        }
                      },
                      "parcelEvidence": {
                        "type": "object",
                        "properties": {
                          "allParcelsCollected": {
                            "type": ["boolean", "null"]
                          },
                          "coverage": {
                            "type": "string",
                            "enum": ["complete", "incomplete"]
                          },
                          "membershipObservedAt": {
                            "anyOf": [
                              {
                                "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))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "confirmed",
                              "pending",
                              "incomplete",
                              "stale",
                              "unavailable",
                              "unknown"
                            ]
                          },
                          "parcels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "carrier": {
                                  "type": ["string", "null"]
                                },
                                "number": {
                                  "type": "string"
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "confirmed",
                                    "pending",
                                    "unavailable",
                                    "unknown"
                                  ]
                                },
                                "event": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "detailCode": {
                                          "type": "string"
                                        },
                                        "occurredAt": {
                                          "anyOf": [
                                            {
                                              "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))$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "reportedAt": {
                                          "type": ["string", "null"]
                                        }
                                      },
                                      "required": [
                                        "detailCode",
                                        "occurredAt",
                                        "reportedAt"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "detailCode": {
                                  "type": ["string", "null"]
                                },
                                "observedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "establishedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "refresh": {
                                  "type": "string",
                                  "enum": [
                                    "current",
                                    "unavailable",
                                    "unknown",
                                    "stale"
                                  ]
                                },
                                "simulated": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "carrier",
                                "number",
                                "state",
                                "event",
                                "detailCode",
                                "observedAt",
                                "establishedAt",
                                "refresh",
                                "simulated"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "allParcelsCollected",
                          "coverage",
                          "membershipObservedAt",
                          "state",
                          "parcels"
                        ],
                        "additionalProperties": false
                      },
                      "customerNotes": {
                        "type": ["string", "null"]
                      },
                      "holdUntilDate": {
                        "type": ["string", "null"]
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "declaredUnitValue": {
                              "type": ["string", "null"]
                            },
                            "name": {
                              "type": ["string", "null"]
                            },
                            "productId": {
                              "type": ["string", "null"]
                            },
                            "quantity": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sku": {
                              "type": ["string", "null"]
                            },
                            "unitPrice": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["name", "quantity", "sku"],
                          "additionalProperties": false
                        }
                      },
                      "recipient": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "city": {
                                "type": ["string", "null"]
                              },
                              "company": {
                                "type": ["string", "null"]
                              },
                              "country": {
                                "type": ["string", "null"]
                              },
                              "email": {
                                "type": ["string", "null"]
                              },
                              "name": {
                                "type": ["string", "null"]
                              },
                              "phone": {
                                "type": ["string", "null"]
                              },
                              "postalCode": {
                                "type": ["string", "null"]
                              },
                              "state": {
                                "type": ["string", "null"]
                              },
                              "street1": {
                                "type": ["string", "null"]
                              },
                              "street2": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": [
                              "city",
                              "company",
                              "country",
                              "email",
                              "name",
                              "phone",
                              "postalCode",
                              "state",
                              "street1",
                              "street2"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": "string"
                      },
                      "requestedShippingService": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": [
                      "orderDate",
                      "providerOrderNumber",
                      "recipientName",
                      "status",
                      "tracking",
                      "customerNotes",
                      "holdUntilDate",
                      "items",
                      "recipient",
                      "revision",
                      "requestedShippingService"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "packingException": {
                "description": "Redemption cards held while packing, each with its offer, response deadline and outcome. Null when no card was held.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "estimate": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "description": "Estimated total in currency units. Null when a component is not yet known; unknown is never reported as zero.",
                                "type": ["string", "null"]
                              },
                              "asOf": {
                                "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))$"
                              },
                              "basis": {
                                "type": "string",
                                "const": "estimate"
                              },
                              "complete": {
                                "type": "boolean",
                                "description": "True only when every affected unit is applied and the amount is known. False while any unit is not applied, because that card is priced as ordered, and when the amount is null."
                              },
                              "components": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": ["string", "null"]
                                    },
                                    "code": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["amount", "code"],
                                  "additionalProperties": false
                                }
                              },
                              "currency": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 3
                              },
                              "revision": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "amount",
                              "asOf",
                              "basis",
                              "complete",
                              "components",
                              "currency",
                              "revision"
                            ],
                            "additionalProperties": false,
                            "description": "An estimate only. The billed amount appears on the customer's invoice through ordinary billing."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "type": "string"
                      },
                      "recordedAt": {
                        "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))$"
                      },
                      "resolvedAt": {
                        "anyOf": [
                          {
                            "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))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "enum": ["held", "resolved"],
                        "description": "held keeps the order from shipping until every unit settles."
                      },
                      "units": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "decision": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "answer": {
                                      "type": "string",
                                      "enum": ["accept_offer", "remove_card"]
                                    },
                                    "decidedAt": {
                                      "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))$"
                                    },
                                    "offerRevision": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9007199254740991
                                    },
                                    "operationId": {
                                      "description": "Operation ID of the answer that made this decision. Retry or recover an answer by this ID. Null when the warehouse or the deadline decided.",
                                      "type": ["string", "null"]
                                    },
                                    "source": {
                                      "type": "string",
                                      "enum": [
                                        "answer",
                                        "warehouse",
                                        "deadline_default"
                                      ],
                                      "description": "answer is the customer's own answer; warehouse is a decision the warehouse recorded on the customer's instruction; deadline_default removes the card when the response window closes without one."
                                    }
                                  },
                                  "required": [
                                    "answer",
                                    "decidedAt",
                                    "offerRevision",
                                    "operationId",
                                    "source"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "foundCondition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "nm",
                                    "lp",
                                    "mp",
                                    "hp",
                                    "dmg",
                                    "no_damage_found"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "lineIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "condition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Condition of the offered replacement card, when graded."
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": ["replacement", "no_offer"],
                                  "description": "replacement offers one reserved card; no_offer means the only choice is removing the card."
                                },
                                "product": {
                                  "description": "The SKU of the offered replacement card, or null for no_offer.",
                                  "type": ["string", "null"]
                                },
                                "readableAt": {
                                  "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))$"
                                },
                                "responseDeadlineAt": {
                                  "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))$"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "condition",
                                "id",
                                "kind",
                                "product",
                                "readableAt",
                                "responseDeadlineAt",
                                "revision"
                              ],
                              "additionalProperties": false
                            },
                            "ordered": {
                              "type": "object",
                              "properties": {
                                "condition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "product": {
                                  "type": "string"
                                },
                                "sku": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": ["condition", "product", "sku"],
                              "additionalProperties": false
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "awaiting_answer",
                                "received",
                                "pending",
                                "applied",
                                "refused"
                              ]
                            },
                            "packCardOrdinal": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "condition_mismatch",
                                "missing",
                                "damaged"
                              ]
                            },
                            "responseDeadlineAt": {
                              "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))$"
                            },
                            "unitIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "decision",
                            "foundCondition",
                            "id",
                            "lineIndex",
                            "offer",
                            "ordered",
                            "outcome",
                            "packCardOrdinal",
                            "reason",
                            "responseDeadlineAt",
                            "unitIndex"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "estimate",
                      "id",
                      "recordedAt",
                      "resolvedAt",
                      "revision",
                      "status",
                      "units"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sourceOrderId": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "customerLabel",
              "id",
              "kind",
              "receipt",
              "visibleOrderNumber",
              "current",
              "sourceOrderId"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "order"],
        "additionalProperties": false
      },
      "title": "Copy order",
      "operation": "copyOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Creates one ordinary order with the requested service. It starts On hold for a later explicit release unless hold is false; set hold to false to release it to the warehouse as awaiting shipment at once. A retry with the same submission key must repeat the same hold value, and a changed value conflicts. A retry more than five minutes after the original creation never sends a new release and reports the order's current state. Vault never buys a shipping label: the warehouse buys it after packing, and its tracking then appears in order.current.tracking on later reads. placement.state is released, on_hold, or release_unconfirmed when the order was created but its release could not be verified. A deliveryConfirmation request must match the priced shippingQuote selection. Omit the top-level value to carry the selection unchanged. Changed confirmation conflicts with the original intent. For the priced flow, preview the recipient and physical source, call createShippingQuote with those same products, quantities and recipient, choose a quote, and pass its exact selection as shippingQuote and its fulfillmentSource unchanged. An item may set declaredUnitValue.amount in USD independently of unitPrice; omitting it uses the verified product declaration. The top-level customs object remains only a compatibility fallback for older callers. Create rechecks eligibility, packing, pricing and service identity before sending; changed estimates require a new quote and explicit selection. Quotes are estimates, not price locks or label purchases. A quote prices one parcel at the order's total weight. The ordinary Vault web form requires this priced choice. Existing unquoted HTTP/MCP clients remain compatible: a named service requires preview's requestedService.selected and requestedService.review as requestedShippingService and requestedShippingServiceReview; omitting both requested-service fields retains their legacy warehouse-choice behavior. New submissions require a current fulfillmentSource. Confirmed legacy submissions replay their original receipt; unknown outcomes are never resent. The original 47-column CSV profile uses externalIdentity with source original_47_column_csv and the original Order # as reference (1–100 characters after trimming outer whitespace). It derives orderKey when omitted and recognizes equivalent initial content across CSV, API, MCP and replacement credentials. A changed recipient, item, declared customs value, quantity or requested service conflicts and requires a deliberate permitted held-order edit. An API or MCP create that names a CSV reference and sets hold to false is released at once; only held orders can be corrected.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "deliveryConfirmation": {
            "type": "string",
            "enum": [
              "none",
              "delivery",
              "signature",
              "adult_signature",
              "direct_signature"
            ]
          },
          "customs": {
            "type": "object",
            "properties": {
              "countryOfOrigin": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "declaredValue": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "string",
                    "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                  }
                },
                "required": ["amount"],
                "additionalProperties": false
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "tariffCode": {
                "type": "string",
                "pattern": "^(?=(?:\\D*\\d){4,10}\\D*$)\\d+(?:\\.\\d+)*$"
              }
            },
            "required": [
              "countryOfOrigin",
              "declaredValue",
              "description",
              "tariffCode"
            ],
            "additionalProperties": false
          },
          "customerLabel": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "lines": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "declaredUnitValue": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    }
                  },
                  "required": ["amount"],
                  "additionalProperties": false
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100000
                },
                "sku": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "unitPrice": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                }
              },
              "required": ["name", "quantity", "unitPrice"],
              "additionalProperties": false
            }
          },
          "orderKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "orderNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "addressLine2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "addressLine3": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "city": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contactName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countryCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postalCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "region": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "street1": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "street2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "street3": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "storeLinkId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "storeRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "visibleOrderNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "shippingQuote": {
            "type": "object",
            "properties": {
              "deliveryConfirmation": {
                "type": "string",
                "enum": [
                  "none",
                  "delivery",
                  "signature",
                  "adult_signature",
                  "direct_signature"
                ]
              },
              "insurance": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "none"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "native"
                      },
                      "packages": {
                        "minItems": 1,
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "string",
                              "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            }
                          },
                          "required": ["amount", "currency"],
                          "additionalProperties": false
                        }
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "carrier",
                          "parcelguard",
                          "shipsurance",
                          "xcover"
                        ]
                      }
                    },
                    "required": ["kind", "packages", "provider"],
                    "additionalProperties": false
                  }
                ]
              },
              "review": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "requestedShippingService": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "requestedShippingServiceReview": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "review",
              "requestedShippingService",
              "requestedShippingServiceReview"
            ],
            "additionalProperties": false
          },
          "requestedShippingService": {
            "type": "string",
            "maxLength": 200
          },
          "requestedShippingServiceReview": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "fulfillmentSource": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "v1WarehouseId": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef",
                  "v1WarehouseId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "test"
                  },
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "mode",
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef"
                ],
                "additionalProperties": false
              }
            ]
          },
          "externalIdentity": {
            "type": "object",
            "properties": {
              "reference": {
                "type": "string"
              },
              "source": {
                "type": "string",
                "enum": ["original_47_column_csv"]
              }
            },
            "required": ["reference", "source"],
            "additionalProperties": false
          },
          "hold": {
            "type": "boolean"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["lines", "recipient", "organizationId", "submissionKey"],
        "additionalProperties": false
      },
      "name": "orders_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "customerLabel": {
                "type": ["string", "null"]
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": ["ordinary", "redemption", "reship", "ship_back"]
              },
              "receipt": {
                "type": "object",
                "properties": {
                  "operationId": {
                    "type": ["string", "null"]
                  },
                  "recordedAt": {
                    "type": "string"
                  }
                },
                "required": ["operationId", "recordedAt"],
                "additionalProperties": false
              },
              "visibleOrderNumber": {
                "type": ["string", "null"]
              },
              "cancellation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "deadlineAt": {
                        "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))$"
                      },
                      "eligible": {
                        "type": "boolean"
                      }
                    },
                    "required": ["deadlineAt", "eligible"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "insurance": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "insured": {
                                "type": "boolean",
                                "description": "Whether the order asks the warehouse to insure its one parcel. False is the explicit no-additional-insurance choice."
                              },
                              "insuredValue": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["amount", "currency"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Declared value to insure, independent of goods and customs values. Null when not insured."
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "insured": {
                                        "description": "Whether the warehouse's label reports additional coverage. Null when the label does not report it.",
                                        "type": ["boolean", "null"]
                                      },
                                      "insuredValue": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "amount": {
                                                "type": "string"
                                              },
                                              "currency": {
                                                "type": "string"
                                              }
                                            },
                                            "required": ["amount", "currency"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "provider": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "carrier",
                                              "parcelguard",
                                              "shipsurance",
                                              "xcover"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "insured",
                                      "insuredValue",
                                      "provider"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Coverage reported by the warehouse's one current label."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Null until the warehouse buys the one label for this order, or when the order has more than one active shipment."
                              },
                              "provider": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "carrier",
                                      "parcelguard",
                                      "shipsurance",
                                      "xcover"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Coverage provider. carrier is the carrier's declared-value coverage."
                              }
                            },
                            "required": [
                              "insured",
                              "insuredValue",
                              "label",
                              "provider"
                            ],
                            "additionalProperties": false,
                            "description": "The reviewed coverage choice on the warehouse order. The quoted premium remains on the shipping quote; Vault does not buy the label."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requestedDeliveryConfirmation": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "none",
                              "delivery",
                              "signature",
                              "adult_signature",
                              "direct_signature"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "orderDate": {
                        "type": ["string", "null"]
                      },
                      "providerOrderNumber": {
                        "type": ["string", "null"]
                      },
                      "recipientName": {
                        "type": ["string", "null"]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "on_hold",
                          "ready",
                          "shipped",
                          "canceled",
                          "unknown"
                        ]
                      },
                      "tracking": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "deliveryConfirmation": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "delivery",
                                    "signature",
                                    "adult_signature",
                                    "direct_signature"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "carrier": {
                              "type": ["string", "null"]
                            },
                            "number": {
                              "type": "string"
                            },
                            "shipDate": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["carrier", "number", "shipDate"],
                          "additionalProperties": false
                        }
                      },
                      "parcelEvidence": {
                        "type": "object",
                        "properties": {
                          "allParcelsCollected": {
                            "type": ["boolean", "null"]
                          },
                          "coverage": {
                            "type": "string",
                            "enum": ["complete", "incomplete"]
                          },
                          "membershipObservedAt": {
                            "anyOf": [
                              {
                                "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))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "confirmed",
                              "pending",
                              "incomplete",
                              "stale",
                              "unavailable",
                              "unknown"
                            ]
                          },
                          "parcels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "carrier": {
                                  "type": ["string", "null"]
                                },
                                "number": {
                                  "type": "string"
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "confirmed",
                                    "pending",
                                    "unavailable",
                                    "unknown"
                                  ]
                                },
                                "event": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "detailCode": {
                                          "type": "string"
                                        },
                                        "occurredAt": {
                                          "anyOf": [
                                            {
                                              "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))$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "reportedAt": {
                                          "type": ["string", "null"]
                                        }
                                      },
                                      "required": [
                                        "detailCode",
                                        "occurredAt",
                                        "reportedAt"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "detailCode": {
                                  "type": ["string", "null"]
                                },
                                "observedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "establishedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "refresh": {
                                  "type": "string",
                                  "enum": [
                                    "current",
                                    "unavailable",
                                    "unknown",
                                    "stale"
                                  ]
                                },
                                "simulated": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "carrier",
                                "number",
                                "state",
                                "event",
                                "detailCode",
                                "observedAt",
                                "establishedAt",
                                "refresh",
                                "simulated"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "allParcelsCollected",
                          "coverage",
                          "membershipObservedAt",
                          "state",
                          "parcels"
                        ],
                        "additionalProperties": false
                      },
                      "customerNotes": {
                        "type": ["string", "null"]
                      },
                      "holdUntilDate": {
                        "type": ["string", "null"]
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "declaredUnitValue": {
                              "type": ["string", "null"]
                            },
                            "name": {
                              "type": ["string", "null"]
                            },
                            "productId": {
                              "type": ["string", "null"]
                            },
                            "quantity": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sku": {
                              "type": ["string", "null"]
                            },
                            "unitPrice": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["name", "quantity", "sku"],
                          "additionalProperties": false
                        }
                      },
                      "recipient": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "city": {
                                "type": ["string", "null"]
                              },
                              "company": {
                                "type": ["string", "null"]
                              },
                              "country": {
                                "type": ["string", "null"]
                              },
                              "email": {
                                "type": ["string", "null"]
                              },
                              "name": {
                                "type": ["string", "null"]
                              },
                              "phone": {
                                "type": ["string", "null"]
                              },
                              "postalCode": {
                                "type": ["string", "null"]
                              },
                              "state": {
                                "type": ["string", "null"]
                              },
                              "street1": {
                                "type": ["string", "null"]
                              },
                              "street2": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": [
                              "city",
                              "company",
                              "country",
                              "email",
                              "name",
                              "phone",
                              "postalCode",
                              "state",
                              "street1",
                              "street2"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": "string"
                      },
                      "requestedShippingService": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": [
                      "orderDate",
                      "providerOrderNumber",
                      "recipientName",
                      "status",
                      "tracking",
                      "customerNotes",
                      "holdUntilDate",
                      "items",
                      "recipient",
                      "revision",
                      "requestedShippingService"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "packingException": {
                "description": "Redemption cards held while packing, each with its offer, response deadline and outcome. Null when no card was held.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "estimate": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "description": "Estimated total in currency units. Null when a component is not yet known; unknown is never reported as zero.",
                                "type": ["string", "null"]
                              },
                              "asOf": {
                                "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))$"
                              },
                              "basis": {
                                "type": "string",
                                "const": "estimate"
                              },
                              "complete": {
                                "type": "boolean",
                                "description": "True only when every affected unit is applied and the amount is known. False while any unit is not applied, because that card is priced as ordered, and when the amount is null."
                              },
                              "components": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": ["string", "null"]
                                    },
                                    "code": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["amount", "code"],
                                  "additionalProperties": false
                                }
                              },
                              "currency": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 3
                              },
                              "revision": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "amount",
                              "asOf",
                              "basis",
                              "complete",
                              "components",
                              "currency",
                              "revision"
                            ],
                            "additionalProperties": false,
                            "description": "An estimate only. The billed amount appears on the customer's invoice through ordinary billing."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "type": "string"
                      },
                      "recordedAt": {
                        "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))$"
                      },
                      "resolvedAt": {
                        "anyOf": [
                          {
                            "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))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "enum": ["held", "resolved"],
                        "description": "held keeps the order from shipping until every unit settles."
                      },
                      "units": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "decision": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "answer": {
                                      "type": "string",
                                      "enum": ["accept_offer", "remove_card"]
                                    },
                                    "decidedAt": {
                                      "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))$"
                                    },
                                    "offerRevision": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9007199254740991
                                    },
                                    "operationId": {
                                      "description": "Operation ID of the answer that made this decision. Retry or recover an answer by this ID. Null when the warehouse or the deadline decided.",
                                      "type": ["string", "null"]
                                    },
                                    "source": {
                                      "type": "string",
                                      "enum": [
                                        "answer",
                                        "warehouse",
                                        "deadline_default"
                                      ],
                                      "description": "answer is the customer's own answer; warehouse is a decision the warehouse recorded on the customer's instruction; deadline_default removes the card when the response window closes without one."
                                    }
                                  },
                                  "required": [
                                    "answer",
                                    "decidedAt",
                                    "offerRevision",
                                    "operationId",
                                    "source"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "foundCondition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "nm",
                                    "lp",
                                    "mp",
                                    "hp",
                                    "dmg",
                                    "no_damage_found"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "lineIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "condition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Condition of the offered replacement card, when graded."
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": ["replacement", "no_offer"],
                                  "description": "replacement offers one reserved card; no_offer means the only choice is removing the card."
                                },
                                "product": {
                                  "description": "The SKU of the offered replacement card, or null for no_offer.",
                                  "type": ["string", "null"]
                                },
                                "readableAt": {
                                  "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))$"
                                },
                                "responseDeadlineAt": {
                                  "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))$"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "condition",
                                "id",
                                "kind",
                                "product",
                                "readableAt",
                                "responseDeadlineAt",
                                "revision"
                              ],
                              "additionalProperties": false
                            },
                            "ordered": {
                              "type": "object",
                              "properties": {
                                "condition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "product": {
                                  "type": "string"
                                },
                                "sku": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": ["condition", "product", "sku"],
                              "additionalProperties": false
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "awaiting_answer",
                                "received",
                                "pending",
                                "applied",
                                "refused"
                              ]
                            },
                            "packCardOrdinal": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "condition_mismatch",
                                "missing",
                                "damaged"
                              ]
                            },
                            "responseDeadlineAt": {
                              "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))$"
                            },
                            "unitIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "decision",
                            "foundCondition",
                            "id",
                            "lineIndex",
                            "offer",
                            "ordered",
                            "outcome",
                            "packCardOrdinal",
                            "reason",
                            "responseDeadlineAt",
                            "unitIndex"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "estimate",
                      "id",
                      "recordedAt",
                      "resolvedAt",
                      "revision",
                      "status",
                      "units"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sourceOrderId": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "customerLabel",
              "id",
              "kind",
              "receipt",
              "visibleOrderNumber",
              "current",
              "sourceOrderId"
            ],
            "additionalProperties": false
          },
          "placement": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": ["released", "on_hold", "release_unconfirmed"]
              }
            },
            "required": ["state"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "order", "placement"],
        "additionalProperties": false
      },
      "title": "Create order",
      "operation": "createOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Redemption lines can set declaredUnitValue.amount in USD per unit. Omitted values keep the product-default behavior. A unit value multiplies by quantity for the line total. Values belong to this order and do not change catalog defaults, sale prices, insurance amounts or delivery confirmation. A changed value requires a fresh review and quote. The same submission key with changed values conflicts. Provider readback must retain the exact declarations without appended catalog defaults. Create a redemption from exact catalog products, recorded conditions and quantities through the shared order-creation module. A deliveryConfirmation request must match the priced shippingQuote selection. Omit the top-level value to carry the selection unchanged. Changed confirmation conflicts with the original intent; it never shortens the hold or permits another uncertain purchase. For cards from a published pack, call previewPackRedemption and use its exact product IDs, conditions and quantities as explicit lines for all or selected cards. The optional pack input uses the returned frozen pack revision and digest and preserves source identities for replay. New redemptions start On hold. The creation receipt carries a server-owned cancellation.deadlineAt exactly one hour after confirmed creation; eligible describes that creation-time fact, and replay never extends the deadline. Preview those products and quantities with orderKind: redemption to validate the exact destination and obtain fulfillmentSource, then quote the same recipient and physical source. Creation independently requires a positive postal result in Test and Live. Pass the exact selected shippingQuote, fulfillmentSource, requestedShippingService and requestedShippingServiceReview unchanged. Vault revalidates the recipient, stock, source, parcel, eligible service and current rates before sending; changed inputs or prices require a fresh quote and selection. Quotes are estimates and do not lock a carrier price or buy a label. An exact submission-key replay returns its original receipt, changed intent conflicts, and an unknown provider result is observed rather than sent again. Current write-capable organization keys may use this customer operation. Vault Test supports explicit configured raw-condition and sealed-item lines using isolated exact stock reservation and synthetic correlation. Exact replay does not reserve again; timely cancellation restores the commitment once. Test release is manual after one hour, and no hosted timer or physical warehouse guarantee is established. Frozen pack creation and exact-slab selections remain unavailable in Vault Test; use explicit lines returned by a configured Test pack preview. The success example illustrates a Live business-mode confirmed order shape. Its legacy TEST adapter label names an unverified external partner correlation only. It does not identify Vault Test mode or the provider environment, prove hosted activation, or establish provider or physical acceptance. The static example is not evidence of a live provider effect. Native protocol authority remains separate.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "deliveryConfirmation": {
            "type": "string",
            "enum": [
              "none",
              "delivery",
              "signature",
              "adult_signature",
              "direct_signature"
            ]
          },
          "customerLabel": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "fulfillmentSource": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "v1WarehouseId": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef",
                  "v1WarehouseId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "test"
                  },
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "mode",
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef"
                ],
                "additionalProperties": false
              }
            ]
          },
          "lines": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "condition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "declaredUnitValue": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    }
                  },
                  "required": ["amount"],
                  "additionalProperties": false
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100000
                },
                "sku": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                }
              },
              "required": ["condition", "productId", "quantity"],
              "additionalProperties": false
            }
          },
          "orderKey": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "orderNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "pack": {
            "type": "object",
            "properties": {
              "cardOrdinals": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 10
                }
              },
              "declaredUnitValues": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "productId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    }
                  },
                  "required": ["amount", "productId"],
                  "additionalProperties": false
                }
              },
              "deploymentRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "packReference": {
                "type": "string",
                "pattern": "^0x[0-9a-f]{64}$"
              },
              "sourceContentRevision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "sourceDigest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "deploymentRef",
              "packReference",
              "sourceContentRevision",
              "sourceDigest"
            ],
            "additionalProperties": false
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "addressLine2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "addressLine3": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "city": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "company": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contactName": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "country": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countryCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "postalCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "region": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "street1": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "street2": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "street3": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "redemptionReference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "requestedShippingService": {
            "type": "string",
            "maxLength": 200
          },
          "requestedShippingServiceReview": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "shippingQuote": {
            "type": "object",
            "properties": {
              "deliveryConfirmation": {
                "type": "string",
                "enum": [
                  "none",
                  "delivery",
                  "signature",
                  "adult_signature",
                  "direct_signature"
                ]
              },
              "insurance": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "none"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "native"
                      },
                      "packages": {
                        "minItems": 1,
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "string",
                              "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                            },
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            }
                          },
                          "required": ["amount", "currency"],
                          "additionalProperties": false
                        }
                      },
                      "provider": {
                        "type": "string",
                        "enum": [
                          "carrier",
                          "parcelguard",
                          "shipsurance",
                          "xcover"
                        ]
                      }
                    },
                    "required": ["kind", "packages", "provider"],
                    "additionalProperties": false
                  }
                ]
              },
              "review": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "requestedShippingService": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "requestedShippingServiceReview": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "review",
              "requestedShippingService",
              "requestedShippingServiceReview"
            ],
            "additionalProperties": false
          },
          "slabs": {
            "description": "Legacy compatibility field. Exact-slab redemption is deferred from the current integration scope; use supported raw-card and sealed-item lines or pack selection.",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "grader": {
                  "type": "string",
                  "enum": ["psa", "bgs", "cgc"]
                },
                "cert": {
                  "type": "string",
                  "maxLength": 40,
                  "description": "Legacy graded-card certificate identifier retained for compatibility. Graded-card deposits, cert lookups and exact-slab workflows are deferred from the current integration scope."
                },
                "unitRef": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:0$"
                }
              },
              "required": ["grader", "cert"],
              "additionalProperties": false
            }
          },
          "storeLinkId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "storeRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          },
          "visibleOrderNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "orderKey",
          "organizationId",
          "recipient",
          "redemptionReference",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_create_redemption",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "adapter": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "label": {
                "type": "string",
                "minLength": 1
              },
              "providerVerified": {
                "type": "boolean",
                "const": false
              }
            },
            "required": ["id", "label", "providerVerified"],
            "additionalProperties": false
          },
          "cancellation": {
            "type": "object",
            "properties": {
              "deadlineAt": {
                "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))$"
              },
              "eligible": {
                "type": "boolean",
                "const": true
              }
            },
            "required": ["deadlineAt", "eligible"],
            "additionalProperties": false
          },
          "order": {
            "type": "object",
            "properties": {
              "customerLabel": {
                "type": ["string", "null"]
              },
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": ["ordinary", "redemption", "reship", "ship_back"]
              },
              "receipt": {
                "type": "object",
                "properties": {
                  "operationId": {
                    "type": ["string", "null"]
                  },
                  "recordedAt": {
                    "type": "string"
                  }
                },
                "required": ["operationId", "recordedAt"],
                "additionalProperties": false
              },
              "visibleOrderNumber": {
                "type": ["string", "null"]
              },
              "cancellation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "deadlineAt": {
                        "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))$"
                      },
                      "eligible": {
                        "type": "boolean"
                      }
                    },
                    "required": ["deadlineAt", "eligible"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "current": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "insurance": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "insured": {
                                "type": "boolean",
                                "description": "Whether the order asks the warehouse to insure its one parcel. False is the explicit no-additional-insurance choice."
                              },
                              "insuredValue": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "amount": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      }
                                    },
                                    "required": ["amount", "currency"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Declared value to insure, independent of goods and customs values. Null when not insured."
                              },
                              "label": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "insured": {
                                        "description": "Whether the warehouse's label reports additional coverage. Null when the label does not report it.",
                                        "type": ["boolean", "null"]
                                      },
                                      "insuredValue": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "amount": {
                                                "type": "string"
                                              },
                                              "currency": {
                                                "type": "string"
                                              }
                                            },
                                            "required": ["amount", "currency"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "provider": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "carrier",
                                              "parcelguard",
                                              "shipsurance",
                                              "xcover"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "insured",
                                      "insuredValue",
                                      "provider"
                                    ],
                                    "additionalProperties": false,
                                    "description": "Coverage reported by the warehouse's one current label."
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Null until the warehouse buys the one label for this order, or when the order has more than one active shipment."
                              },
                              "provider": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "carrier",
                                      "parcelguard",
                                      "shipsurance",
                                      "xcover"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Coverage provider. carrier is the carrier's declared-value coverage."
                              }
                            },
                            "required": [
                              "insured",
                              "insuredValue",
                              "label",
                              "provider"
                            ],
                            "additionalProperties": false,
                            "description": "The reviewed coverage choice on the warehouse order. The quoted premium remains on the shipping quote; Vault does not buy the label."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requestedDeliveryConfirmation": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "none",
                              "delivery",
                              "signature",
                              "adult_signature",
                              "direct_signature"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "orderDate": {
                        "type": ["string", "null"]
                      },
                      "providerOrderNumber": {
                        "type": ["string", "null"]
                      },
                      "recipientName": {
                        "type": ["string", "null"]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "on_hold",
                          "ready",
                          "shipped",
                          "canceled",
                          "unknown"
                        ]
                      },
                      "tracking": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "deliveryConfirmation": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "delivery",
                                    "signature",
                                    "adult_signature",
                                    "direct_signature"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "carrier": {
                              "type": ["string", "null"]
                            },
                            "number": {
                              "type": "string"
                            },
                            "shipDate": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["carrier", "number", "shipDate"],
                          "additionalProperties": false
                        }
                      },
                      "parcelEvidence": {
                        "type": "object",
                        "properties": {
                          "allParcelsCollected": {
                            "type": ["boolean", "null"]
                          },
                          "coverage": {
                            "type": "string",
                            "enum": ["complete", "incomplete"]
                          },
                          "membershipObservedAt": {
                            "anyOf": [
                              {
                                "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))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "confirmed",
                              "pending",
                              "incomplete",
                              "stale",
                              "unavailable",
                              "unknown"
                            ]
                          },
                          "parcels": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "carrier": {
                                  "type": ["string", "null"]
                                },
                                "number": {
                                  "type": "string"
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "confirmed",
                                    "pending",
                                    "unavailable",
                                    "unknown"
                                  ]
                                },
                                "event": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "detailCode": {
                                          "type": "string"
                                        },
                                        "occurredAt": {
                                          "anyOf": [
                                            {
                                              "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))$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "reportedAt": {
                                          "type": ["string", "null"]
                                        }
                                      },
                                      "required": [
                                        "detailCode",
                                        "occurredAt",
                                        "reportedAt"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "detailCode": {
                                  "type": ["string", "null"]
                                },
                                "observedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "establishedAt": {
                                  "anyOf": [
                                    {
                                      "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))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "refresh": {
                                  "type": "string",
                                  "enum": [
                                    "current",
                                    "unavailable",
                                    "unknown",
                                    "stale"
                                  ]
                                },
                                "simulated": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "carrier",
                                "number",
                                "state",
                                "event",
                                "detailCode",
                                "observedAt",
                                "establishedAt",
                                "refresh",
                                "simulated"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "allParcelsCollected",
                          "coverage",
                          "membershipObservedAt",
                          "state",
                          "parcels"
                        ],
                        "additionalProperties": false
                      },
                      "customerNotes": {
                        "type": ["string", "null"]
                      },
                      "holdUntilDate": {
                        "type": ["string", "null"]
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "declaredUnitValue": {
                              "type": ["string", "null"]
                            },
                            "name": {
                              "type": ["string", "null"]
                            },
                            "productId": {
                              "type": ["string", "null"]
                            },
                            "quantity": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sku": {
                              "type": ["string", "null"]
                            },
                            "unitPrice": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["name", "quantity", "sku"],
                          "additionalProperties": false
                        }
                      },
                      "recipient": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "city": {
                                "type": ["string", "null"]
                              },
                              "company": {
                                "type": ["string", "null"]
                              },
                              "country": {
                                "type": ["string", "null"]
                              },
                              "email": {
                                "type": ["string", "null"]
                              },
                              "name": {
                                "type": ["string", "null"]
                              },
                              "phone": {
                                "type": ["string", "null"]
                              },
                              "postalCode": {
                                "type": ["string", "null"]
                              },
                              "state": {
                                "type": ["string", "null"]
                              },
                              "street1": {
                                "type": ["string", "null"]
                              },
                              "street2": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": [
                              "city",
                              "company",
                              "country",
                              "email",
                              "name",
                              "phone",
                              "postalCode",
                              "state",
                              "street1",
                              "street2"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": "string"
                      },
                      "requestedShippingService": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": [
                      "orderDate",
                      "providerOrderNumber",
                      "recipientName",
                      "status",
                      "tracking",
                      "customerNotes",
                      "holdUntilDate",
                      "items",
                      "recipient",
                      "revision",
                      "requestedShippingService"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "packingException": {
                "description": "Redemption cards held while packing, each with its offer, response deadline and outcome. Null when no card was held.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "estimate": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "description": "Estimated total in currency units. Null when a component is not yet known; unknown is never reported as zero.",
                                "type": ["string", "null"]
                              },
                              "asOf": {
                                "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))$"
                              },
                              "basis": {
                                "type": "string",
                                "const": "estimate"
                              },
                              "complete": {
                                "type": "boolean",
                                "description": "True only when every affected unit is applied and the amount is known. False while any unit is not applied, because that card is priced as ordered, and when the amount is null."
                              },
                              "components": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "amount": {
                                      "type": ["string", "null"]
                                    },
                                    "code": {
                                      "type": "string"
                                    }
                                  },
                                  "required": ["amount", "code"],
                                  "additionalProperties": false
                                }
                              },
                              "currency": {
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 3
                              },
                              "revision": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "amount",
                              "asOf",
                              "basis",
                              "complete",
                              "components",
                              "currency",
                              "revision"
                            ],
                            "additionalProperties": false,
                            "description": "An estimate only. The billed amount appears on the customer's invoice through ordinary billing."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "type": "string"
                      },
                      "recordedAt": {
                        "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))$"
                      },
                      "resolvedAt": {
                        "anyOf": [
                          {
                            "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))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "enum": ["held", "resolved"],
                        "description": "held keeps the order from shipping until every unit settles."
                      },
                      "units": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "decision": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "answer": {
                                      "type": "string",
                                      "enum": ["accept_offer", "remove_card"]
                                    },
                                    "decidedAt": {
                                      "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))$"
                                    },
                                    "offerRevision": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 9007199254740991
                                    },
                                    "operationId": {
                                      "description": "Operation ID of the answer that made this decision. Retry or recover an answer by this ID. Null when the warehouse or the deadline decided.",
                                      "type": ["string", "null"]
                                    },
                                    "source": {
                                      "type": "string",
                                      "enum": [
                                        "answer",
                                        "warehouse",
                                        "deadline_default"
                                      ],
                                      "description": "answer is the customer's own answer; warehouse is a decision the warehouse recorded on the customer's instruction; deadline_default removes the card when the response window closes without one."
                                    }
                                  },
                                  "required": [
                                    "answer",
                                    "decidedAt",
                                    "offerRevision",
                                    "operationId",
                                    "source"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "foundCondition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "nm",
                                    "lp",
                                    "mp",
                                    "hp",
                                    "dmg",
                                    "no_damage_found"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "id": {
                              "type": "string"
                            },
                            "lineIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "offer": {
                              "type": "object",
                              "properties": {
                                "condition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Condition of the offered replacement card, when graded."
                                },
                                "id": {
                                  "type": "string"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": ["replacement", "no_offer"],
                                  "description": "replacement offers one reserved card; no_offer means the only choice is removing the card."
                                },
                                "product": {
                                  "description": "The SKU of the offered replacement card, or null for no_offer.",
                                  "type": ["string", "null"]
                                },
                                "readableAt": {
                                  "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))$"
                                },
                                "responseDeadlineAt": {
                                  "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))$"
                                },
                                "revision": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "condition",
                                "id",
                                "kind",
                                "product",
                                "readableAt",
                                "responseDeadlineAt",
                                "revision"
                              ],
                              "additionalProperties": false
                            },
                            "ordered": {
                              "type": "object",
                              "properties": {
                                "condition": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "product": {
                                  "type": "string"
                                },
                                "sku": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": ["condition", "product", "sku"],
                              "additionalProperties": false
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "awaiting_answer",
                                "received",
                                "pending",
                                "applied",
                                "refused"
                              ]
                            },
                            "packCardOrdinal": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reason": {
                              "type": "string",
                              "enum": [
                                "condition_mismatch",
                                "missing",
                                "damaged"
                              ]
                            },
                            "responseDeadlineAt": {
                              "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))$"
                            },
                            "unitIndex": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "decision",
                            "foundCondition",
                            "id",
                            "lineIndex",
                            "offer",
                            "ordered",
                            "outcome",
                            "packCardOrdinal",
                            "reason",
                            "responseDeadlineAt",
                            "unitIndex"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "estimate",
                      "id",
                      "recordedAt",
                      "resolvedAt",
                      "revision",
                      "status",
                      "units"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sourceOrderId": {
                "type": ["string", "null"]
              }
            },
            "required": [
              "customerLabel",
              "id",
              "kind",
              "receipt",
              "visibleOrderNumber",
              "current",
              "sourceOrderId"
            ],
            "additionalProperties": false
          },
          "redemptionReference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "slabs": {
            "description": "Historical exact-slab metadata retained for compatibility. Exact-slab workflows are deferred from the current integration scope.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "cert": {
                  "type": "string"
                },
                "grader": {
                  "type": "string",
                  "enum": ["psa", "bgs", "cgc"]
                },
                "unitRef": {
                  "type": "string"
                }
              },
              "required": ["cert", "grader", "unitRef"],
              "additionalProperties": false
            }
          },
          "correlationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "yugaCorrelationId": {
            "deprecated": true,
            "description": "Deprecated alias of correlationId.",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "effects",
          "operationId",
          "outcome",
          "adapter",
          "order",
          "redemptionReference",
          "correlationId"
        ],
        "additionalProperties": false
      },
      "title": "Create redemption order",
      "operation": "createRedemptionOrder"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export orders as CSV",
      "inputSchema": {
        "type": "object",
        "properties": {
          "customerLabel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "q": {
            "description": "Matches part of the order number or, for Live orders, part of the recipient name. Email addresses, street addresses, SKUs and tracking numbers are not searched.",
            "type": "string",
            "maxLength": 200
          },
          "status": {
            "type": "string",
            "enum": ["on_hold", "ready", "shipped", "canceled", "unknown"]
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "orders_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          }
        },
        "required": ["content", "filename"],
        "additionalProperties": false
      },
      "title": "Export orders",
      "operation": "exportOrders"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Read one known order within the current organization and mode, including permitted recipient, line, status and tracking facts. Current provider facts can be null when the warehouse no longer reports the order. current.requestedDeliveryConfirmation reports the provider order request. Each tracking entry reports deliveryConfirmation only from that exact purchased shipment; null or an absent field means unknown. A request, label or signature option does not prove recipient identity or physical delivery. For a Live redemption, cancellation.deadlineAt is the persisted server deadline and cancellation.eligible reflects the current hold policy: an untouched held order is eligible only while now < deadlineAt. The exact deadline is closed. Cancellation rechecks current provider identity, revision and shipment state; eligibility is not a provider or physical-workflow guarantee. A historical redemption without a recorded hold returns cancellation: null; ordinary orders omit it. The creation receipt preserves its original creation-time eligibility on replay and never extends the deadline. Test redemptions also expose their server-owned cancellation deadline and current time/state eligibility; these facts do not grant cancellation permission. Manual Test release is unavailable before the deadline. An early release returns 409 state_conflict explaining the open window. Refresh after expiry to review manual release; expiry alone does not release the order. Additive current.parcelEvidence confirms allParcelsCollected only for a complete active outbound parcel set with qualifying physical carrier evidence for every parcel. Historical collection and current refresh health remain separate; unknown, incomplete, stale or unavailable evidence returns no affirmative conclusion. Label creation, electronic advice, shipDate and shipped status do not prove collection. Test events are explicitly simulated. Missing or foreign orders are not found. A redemption also returns packingException: null when no card was held while packing, otherwise the held cards; ordinary orders omit the field. Each unit is one physical copy with a stable id, its zero-based lineIndex and unitIndex (duplicate copies of one card are separate units), the ordered product, SKU and condition, the reason (condition_mismatch, missing or damaged) and the condition found. offer is the current offer: id, revision, kind replacement (one reserved card with its product and condition) or no_offer (removal is the only answer), readableAt and responseDeadlineAt, 168 hours after readableAt. decision is null until the card is answered, decided by the warehouse on your instruction or defaulted to remove_card at the deadline; it carries the answer, source, offerRevision, decidedAt and the answer operationId. outcome is awaiting_answer, received, pending, applied or refused. Only applied is a confirmed effect: an applied remove_card is a confirmed removal that you can use as evidence to restore that card's token, and an applied accept_offer ships the offered card. received and pending are not confirmed. The order lines keep the ordered content; apply the applied unit decisions to them for the current contents. status stays held, and the order cannot ship, until every unit is applied and any purchased label is reconciled; resolved lifts the hold, and an order with no remaining cards is cancelled. estimate is the current revised customer estimate with its revision, asOf, components and complete flag. It is not a charge or an invoice; an amount of null means unknown and is never zero. A higher estimate needs no approval. Actual charges come from actual work and carrier costs through your ordinary invoices.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$",
            "description": "Vault's order ID from the order list, not the visible order number."
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["orderId", "organizationId"],
        "additionalProperties": false
      },
      "name": "orders_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "customerLabel": {
            "type": ["string", "null"]
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": ["ordinary", "redemption", "reship", "ship_back"]
          },
          "receipt": {
            "type": "object",
            "properties": {
              "operationId": {
                "type": ["string", "null"]
              },
              "recordedAt": {
                "type": "string"
              }
            },
            "required": ["operationId", "recordedAt"],
            "additionalProperties": false
          },
          "visibleOrderNumber": {
            "type": ["string", "null"]
          },
          "cancellation": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "deadlineAt": {
                    "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))$"
                  },
                  "eligible": {
                    "type": "boolean"
                  }
                },
                "required": ["deadlineAt", "eligible"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "current": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "insurance": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "insured": {
                            "type": "boolean",
                            "description": "Whether the order asks the warehouse to insure its one parcel. False is the explicit no-additional-insurance choice."
                          },
                          "insuredValue": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string"
                                  },
                                  "currency": {
                                    "type": "string"
                                  }
                                },
                                "required": ["amount", "currency"],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Declared value to insure, independent of goods and customs values. Null when not insured."
                          },
                          "label": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "insured": {
                                    "description": "Whether the warehouse's label reports additional coverage. Null when the label does not report it.",
                                    "type": ["boolean", "null"]
                                  },
                                  "insuredValue": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "amount": {
                                            "type": "string"
                                          },
                                          "currency": {
                                            "type": "string"
                                          }
                                        },
                                        "required": ["amount", "currency"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "provider": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "carrier",
                                          "parcelguard",
                                          "shipsurance",
                                          "xcover"
                                        ]
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "insured",
                                  "insuredValue",
                                  "provider"
                                ],
                                "additionalProperties": false,
                                "description": "Coverage reported by the warehouse's one current label."
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Null until the warehouse buys the one label for this order, or when the order has more than one active shipment."
                          },
                          "provider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "carrier",
                                  "parcelguard",
                                  "shipsurance",
                                  "xcover"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Coverage provider. carrier is the carrier's declared-value coverage."
                          }
                        },
                        "required": [
                          "insured",
                          "insuredValue",
                          "label",
                          "provider"
                        ],
                        "additionalProperties": false,
                        "description": "The reviewed coverage choice on the warehouse order. The quoted premium remains on the shipping quote; Vault does not buy the label."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "requestedDeliveryConfirmation": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "none",
                          "delivery",
                          "signature",
                          "adult_signature",
                          "direct_signature"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orderDate": {
                    "type": ["string", "null"]
                  },
                  "providerOrderNumber": {
                    "type": ["string", "null"]
                  },
                  "recipientName": {
                    "type": ["string", "null"]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "on_hold",
                      "ready",
                      "shipped",
                      "canceled",
                      "unknown"
                    ]
                  },
                  "tracking": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "deliveryConfirmation": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "none",
                                "delivery",
                                "signature",
                                "adult_signature",
                                "direct_signature"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "carrier": {
                          "type": ["string", "null"]
                        },
                        "number": {
                          "type": "string"
                        },
                        "shipDate": {
                          "type": ["string", "null"]
                        }
                      },
                      "required": ["carrier", "number", "shipDate"],
                      "additionalProperties": false
                    }
                  },
                  "parcelEvidence": {
                    "type": "object",
                    "properties": {
                      "allParcelsCollected": {
                        "type": ["boolean", "null"]
                      },
                      "coverage": {
                        "type": "string",
                        "enum": ["complete", "incomplete"]
                      },
                      "membershipObservedAt": {
                        "anyOf": [
                          {
                            "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))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "state": {
                        "type": "string",
                        "enum": [
                          "confirmed",
                          "pending",
                          "incomplete",
                          "stale",
                          "unavailable",
                          "unknown"
                        ]
                      },
                      "parcels": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "carrier": {
                              "type": ["string", "null"]
                            },
                            "number": {
                              "type": "string"
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "confirmed",
                                "pending",
                                "unavailable",
                                "unknown"
                              ]
                            },
                            "event": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "detailCode": {
                                      "type": "string"
                                    },
                                    "occurredAt": {
                                      "anyOf": [
                                        {
                                          "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))$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "reportedAt": {
                                      "type": ["string", "null"]
                                    }
                                  },
                                  "required": [
                                    "detailCode",
                                    "occurredAt",
                                    "reportedAt"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "detailCode": {
                              "type": ["string", "null"]
                            },
                            "observedAt": {
                              "anyOf": [
                                {
                                  "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))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "establishedAt": {
                              "anyOf": [
                                {
                                  "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))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "refresh": {
                              "type": "string",
                              "enum": [
                                "current",
                                "unavailable",
                                "unknown",
                                "stale"
                              ]
                            },
                            "simulated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id",
                            "carrier",
                            "number",
                            "state",
                            "event",
                            "detailCode",
                            "observedAt",
                            "establishedAt",
                            "refresh",
                            "simulated"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "allParcelsCollected",
                      "coverage",
                      "membershipObservedAt",
                      "state",
                      "parcels"
                    ],
                    "additionalProperties": false
                  },
                  "customerNotes": {
                    "type": ["string", "null"]
                  },
                  "holdUntilDate": {
                    "type": ["string", "null"]
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "declaredUnitValue": {
                          "type": ["string", "null"]
                        },
                        "name": {
                          "type": ["string", "null"]
                        },
                        "productId": {
                          "type": ["string", "null"]
                        },
                        "quantity": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sku": {
                          "type": ["string", "null"]
                        },
                        "unitPrice": {
                          "type": ["string", "null"]
                        }
                      },
                      "required": ["name", "quantity", "sku"],
                      "additionalProperties": false
                    }
                  },
                  "recipient": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "city": {
                            "type": ["string", "null"]
                          },
                          "company": {
                            "type": ["string", "null"]
                          },
                          "country": {
                            "type": ["string", "null"]
                          },
                          "email": {
                            "type": ["string", "null"]
                          },
                          "name": {
                            "type": ["string", "null"]
                          },
                          "phone": {
                            "type": ["string", "null"]
                          },
                          "postalCode": {
                            "type": ["string", "null"]
                          },
                          "state": {
                            "type": ["string", "null"]
                          },
                          "street1": {
                            "type": ["string", "null"]
                          },
                          "street2": {
                            "type": ["string", "null"]
                          }
                        },
                        "required": [
                          "city",
                          "company",
                          "country",
                          "email",
                          "name",
                          "phone",
                          "postalCode",
                          "state",
                          "street1",
                          "street2"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "revision": {
                    "type": "string"
                  },
                  "requestedShippingService": {
                    "type": ["string", "null"]
                  }
                },
                "required": [
                  "orderDate",
                  "providerOrderNumber",
                  "recipientName",
                  "status",
                  "tracking",
                  "customerNotes",
                  "holdUntilDate",
                  "items",
                  "recipient",
                  "revision",
                  "requestedShippingService"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "packingException": {
            "description": "Redemption cards held while packing, each with its offer, response deadline and outcome. Null when no card was held.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "estimate": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "description": "Estimated total in currency units. Null when a component is not yet known; unknown is never reported as zero.",
                            "type": ["string", "null"]
                          },
                          "asOf": {
                            "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))$"
                          },
                          "basis": {
                            "type": "string",
                            "const": "estimate"
                          },
                          "complete": {
                            "type": "boolean",
                            "description": "True only when every affected unit is applied and the amount is known. False while any unit is not applied, because that card is priced as ordered, and when the amount is null."
                          },
                          "components": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": ["string", "null"]
                                },
                                "code": {
                                  "type": "string"
                                }
                              },
                              "required": ["amount", "code"],
                              "additionalProperties": false
                            }
                          },
                          "currency": {
                            "type": "string",
                            "minLength": 3,
                            "maxLength": 3
                          },
                          "revision": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "amount",
                          "asOf",
                          "basis",
                          "complete",
                          "components",
                          "currency",
                          "revision"
                        ],
                        "additionalProperties": false,
                        "description": "An estimate only. The billed amount appears on the customer's invoice through ordinary billing."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "id": {
                    "type": "string"
                  },
                  "recordedAt": {
                    "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))$"
                  },
                  "resolvedAt": {
                    "anyOf": [
                      {
                        "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))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "status": {
                    "type": "string",
                    "enum": ["held", "resolved"],
                    "description": "held keeps the order from shipping until every unit settles."
                  },
                  "units": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "decision": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "answer": {
                                  "type": "string",
                                  "enum": ["accept_offer", "remove_card"]
                                },
                                "decidedAt": {
                                  "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))$"
                                },
                                "offerRevision": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 9007199254740991
                                },
                                "operationId": {
                                  "description": "Operation ID of the answer that made this decision. Retry or recover an answer by this ID. Null when the warehouse or the deadline decided.",
                                  "type": ["string", "null"]
                                },
                                "source": {
                                  "type": "string",
                                  "enum": [
                                    "answer",
                                    "warehouse",
                                    "deadline_default"
                                  ],
                                  "description": "answer is the customer's own answer; warehouse is a decision the warehouse recorded on the customer's instruction; deadline_default removes the card when the response window closes without one."
                                }
                              },
                              "required": [
                                "answer",
                                "decidedAt",
                                "offerRevision",
                                "operationId",
                                "source"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "foundCondition": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "nm",
                                "lp",
                                "mp",
                                "hp",
                                "dmg",
                                "no_damage_found"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "type": "string"
                        },
                        "lineIndex": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "offer": {
                          "type": "object",
                          "properties": {
                            "condition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Condition of the offered replacement card, when graded."
                            },
                            "id": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": ["replacement", "no_offer"],
                              "description": "replacement offers one reserved card; no_offer means the only choice is removing the card."
                            },
                            "product": {
                              "description": "The SKU of the offered replacement card, or null for no_offer.",
                              "type": ["string", "null"]
                            },
                            "readableAt": {
                              "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))$"
                            },
                            "responseDeadlineAt": {
                              "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))$"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "condition",
                            "id",
                            "kind",
                            "product",
                            "readableAt",
                            "responseDeadlineAt",
                            "revision"
                          ],
                          "additionalProperties": false
                        },
                        "ordered": {
                          "type": "object",
                          "properties": {
                            "condition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "product": {
                              "type": "string"
                            },
                            "sku": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": ["condition", "product", "sku"],
                          "additionalProperties": false
                        },
                        "outcome": {
                          "type": "string",
                          "enum": [
                            "awaiting_answer",
                            "received",
                            "pending",
                            "applied",
                            "refused"
                          ]
                        },
                        "packCardOrdinal": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reason": {
                          "type": "string",
                          "enum": ["condition_mismatch", "missing", "damaged"]
                        },
                        "responseDeadlineAt": {
                          "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))$"
                        },
                        "unitIndex": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "decision",
                        "foundCondition",
                        "id",
                        "lineIndex",
                        "offer",
                        "ordered",
                        "outcome",
                        "packCardOrdinal",
                        "reason",
                        "responseDeadlineAt",
                        "unitIndex"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "estimate",
                  "id",
                  "recordedAt",
                  "resolvedAt",
                  "revision",
                  "status",
                  "units"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceOrderId": {
            "type": ["string", "null"]
          }
        },
        "required": [
          "customerLabel",
          "id",
          "kind",
          "receipt",
          "visibleOrderNumber",
          "current",
          "sourceOrderId"
        ],
        "additionalProperties": false
      },
      "title": "Get order",
      "operation": "getOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Set an order tag",
      "inputSchema": {
        "type": "object",
        "properties": {
          "customerLabel": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedRevision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "customerLabel",
          "expectedRevision",
          "orderId",
          "organizationId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_label",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "customerLabel": {
                "type": ["string", "null"]
              },
              "id": {
                "type": "string"
              }
            },
            "required": ["customerLabel", "id"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "order"],
        "additionalProperties": false
      },
      "title": "Set order tag",
      "operation": "setOrderCustomerLabel"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List orders",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "customerLabel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "q": {
            "description": "Matches part of the order number or, for Live orders, part of the recipient name. Email addresses, street addresses, SKUs and tracking numbers are not searched.",
            "type": "string",
            "maxLength": 200
          },
          "status": {
            "type": "string",
            "enum": ["on_hold", "ready", "shipped", "canceled", "unknown"]
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "orders_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "customerLabel": {
                  "type": ["string", "null"]
                },
                "id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": ["ordinary", "redemption", "reship", "ship_back"]
                },
                "receipt": {
                  "type": "object",
                  "properties": {
                    "operationId": {
                      "type": ["string", "null"]
                    },
                    "recordedAt": {
                      "type": "string"
                    }
                  },
                  "required": ["operationId", "recordedAt"],
                  "additionalProperties": false
                },
                "visibleOrderNumber": {
                  "type": ["string", "null"]
                },
                "current": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "insurance": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "insured": {
                                  "type": "boolean",
                                  "description": "Whether the order asks the warehouse to insure its one parcel. False is the explicit no-additional-insurance choice."
                                },
                                "insuredValue": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "amount": {
                                          "type": "string"
                                        },
                                        "currency": {
                                          "type": "string"
                                        }
                                      },
                                      "required": ["amount", "currency"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Declared value to insure, independent of goods and customs values. Null when not insured."
                                },
                                "label": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "insured": {
                                          "description": "Whether the warehouse's label reports additional coverage. Null when the label does not report it.",
                                          "type": ["boolean", "null"]
                                        },
                                        "insuredValue": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "amount": {
                                                  "type": "string"
                                                },
                                                "currency": {
                                                  "type": "string"
                                                }
                                              },
                                              "required": [
                                                "amount",
                                                "currency"
                                              ],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "provider": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                "carrier",
                                                "parcelguard",
                                                "shipsurance",
                                                "xcover"
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "insured",
                                        "insuredValue",
                                        "provider"
                                      ],
                                      "additionalProperties": false,
                                      "description": "Coverage reported by the warehouse's one current label."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Null until the warehouse buys the one label for this order, or when the order has more than one active shipment."
                                },
                                "provider": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "carrier",
                                        "parcelguard",
                                        "shipsurance",
                                        "xcover"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Coverage provider. carrier is the carrier's declared-value coverage."
                                }
                              },
                              "required": [
                                "insured",
                                "insuredValue",
                                "label",
                                "provider"
                              ],
                              "additionalProperties": false,
                              "description": "The reviewed coverage choice on the warehouse order. The quoted premium remains on the shipping quote; Vault does not buy the label."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "requestedDeliveryConfirmation": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "none",
                                "delivery",
                                "signature",
                                "adult_signature",
                                "direct_signature"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderDate": {
                          "type": ["string", "null"]
                        },
                        "providerOrderNumber": {
                          "type": ["string", "null"]
                        },
                        "recipientName": {
                          "type": ["string", "null"]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "on_hold",
                            "ready",
                            "shipped",
                            "canceled",
                            "unknown"
                          ]
                        },
                        "tracking": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "deliveryConfirmation": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "none",
                                      "delivery",
                                      "signature",
                                      "adult_signature",
                                      "direct_signature"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "carrier": {
                                "type": ["string", "null"]
                              },
                              "number": {
                                "type": "string"
                              },
                              "shipDate": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": ["carrier", "number", "shipDate"],
                            "additionalProperties": false
                          }
                        },
                        "parcelEvidence": {
                          "type": "object",
                          "properties": {
                            "allParcelsCollected": {
                              "type": ["boolean", "null"]
                            },
                            "coverage": {
                              "type": "string",
                              "enum": ["complete", "incomplete"]
                            },
                            "membershipObservedAt": {
                              "anyOf": [
                                {
                                  "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))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "confirmed",
                                "pending",
                                "incomplete",
                                "stale",
                                "unavailable",
                                "unknown"
                              ]
                            },
                            "parcels": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "carrier": {
                                    "type": ["string", "null"]
                                  },
                                  "number": {
                                    "type": "string"
                                  },
                                  "state": {
                                    "type": "string",
                                    "enum": [
                                      "confirmed",
                                      "pending",
                                      "unavailable",
                                      "unknown"
                                    ]
                                  },
                                  "event": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "detailCode": {
                                            "type": "string"
                                          },
                                          "occurredAt": {
                                            "anyOf": [
                                              {
                                                "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))$"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "reportedAt": {
                                            "type": ["string", "null"]
                                          }
                                        },
                                        "required": [
                                          "detailCode",
                                          "occurredAt",
                                          "reportedAt"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "detailCode": {
                                    "type": ["string", "null"]
                                  },
                                  "observedAt": {
                                    "anyOf": [
                                      {
                                        "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))$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "establishedAt": {
                                    "anyOf": [
                                      {
                                        "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))$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "refresh": {
                                    "type": "string",
                                    "enum": [
                                      "current",
                                      "unavailable",
                                      "unknown",
                                      "stale"
                                    ]
                                  },
                                  "simulated": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "id",
                                  "carrier",
                                  "number",
                                  "state",
                                  "event",
                                  "detailCode",
                                  "observedAt",
                                  "establishedAt",
                                  "refresh",
                                  "simulated"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "allParcelsCollected",
                            "coverage",
                            "membershipObservedAt",
                            "state",
                            "parcels"
                          ],
                          "additionalProperties": false
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "declaredUnitValue": {
                                "type": ["string", "null"]
                              },
                              "name": {
                                "type": ["string", "null"]
                              },
                              "productId": {
                                "type": ["string", "null"]
                              },
                              "quantity": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sku": {
                                "type": ["string", "null"]
                              },
                              "unitPrice": {
                                "type": ["string", "null"]
                              }
                            },
                            "required": ["name", "quantity", "sku"],
                            "additionalProperties": false
                          }
                        },
                        "recipient": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "city": {
                                  "type": ["string", "null"]
                                },
                                "company": {
                                  "type": ["string", "null"]
                                },
                                "country": {
                                  "type": ["string", "null"]
                                },
                                "email": {
                                  "type": ["string", "null"]
                                },
                                "name": {
                                  "type": ["string", "null"]
                                },
                                "phone": {
                                  "type": ["string", "null"]
                                },
                                "postalCode": {
                                  "type": ["string", "null"]
                                },
                                "state": {
                                  "type": ["string", "null"]
                                },
                                "street1": {
                                  "type": ["string", "null"]
                                },
                                "street2": {
                                  "type": ["string", "null"]
                                }
                              },
                              "required": [
                                "city",
                                "company",
                                "country",
                                "email",
                                "name",
                                "phone",
                                "postalCode",
                                "state",
                                "street1",
                                "street2"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "orderDate",
                        "providerOrderNumber",
                        "recipientName",
                        "status",
                        "tracking"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "customerLabel",
                "id",
                "kind",
                "receipt",
                "visibleOrderNumber",
                "current"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List orders",
      "operation": "listOrders"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Answer one held card in a redemption packing exception. accept_offer accepts the replacement card in the unit's current offer; remove_card removes the card from the order and is the only answer for a no_offer unit. Copy offerId and offerRevision from packingException.units[].offer in a fresh getOrder or batchGetOrders read. The answer binds to the order, the unit and that exact offer revision. A refusal is 409 state_conflict with the reason in error.fields[0].code and changes nothing: stale_offer (the offer was replaced after your read), no_current_offer (accept_offer without a replacement), already_decided, response_window_closed, exception_resolved or submission_conflict (same key, different content). Each copy is answered on its own. An answer is final; a correction goes through the warehouse. The same submission key and content returns the original answer and operationId again and never applies it twice, also after the offer or the settlement changed; it never answers a newer offer. After a lost response, retry with the same key or read the order: the unit's decision.operationId equals the answer's operationId. A retry while the first request is still running returns 409 state_conflict with that operationId; retry later with the same key. outcome is received when the answer is stored, pending while the warehouse carries it out, and applied or refused when final. Only applied means the card was replaced or removed. In Test the answer is normally applied immediately; if not, a scheduled run applies it. In Live the answer is stored as received and the order stays held, because Live settlement is not available yet. An unanswered card defaults to remove_card at its responseDeadlineAt. There is no price approval: a revised estimate never needs an answer. Members and higher roles, and write-capable organization keys, may use this operation. Viewers and read-only keys are refused as forbidden.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "string",
            "enum": ["accept_offer", "remove_card"]
          },
          "offerId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "offerRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "The offer revision the answer was made against."
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          },
          "unitId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": [
          "answer",
          "offerId",
          "offerRevision",
          "orderId",
          "organizationId",
          "submissionKey",
          "unitId"
        ],
        "additionalProperties": false
      },
      "name": "orders_packing_exception_answer",
      "outputSchema": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "object",
            "properties": {
              "answer": {
                "type": "string",
                "enum": ["accept_offer", "remove_card"]
              },
              "answeredAt": {
                "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))$"
              },
              "id": {
                "type": "string"
              },
              "offerId": {
                "type": "string"
              },
              "offerRevision": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "answer",
              "answeredAt",
              "id",
              "offerId",
              "offerRevision"
            ],
            "additionalProperties": false
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "enum": ["received", "pending", "applied", "refused"],
            "description": "received means the answer is stored; pending means it is being carried out; applied and refused are final."
          },
          "unit": {
            "type": "object",
            "properties": {
              "decision": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "answer": {
                        "type": "string",
                        "enum": ["accept_offer", "remove_card"]
                      },
                      "decidedAt": {
                        "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))$"
                      },
                      "offerRevision": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      "operationId": {
                        "description": "Operation ID of the answer that made this decision. Retry or recover an answer by this ID. Null when the warehouse or the deadline decided.",
                        "type": ["string", "null"]
                      },
                      "source": {
                        "type": "string",
                        "enum": ["answer", "warehouse", "deadline_default"],
                        "description": "answer is the customer's own answer; warehouse is a decision the warehouse recorded on the customer's instruction; deadline_default removes the card when the response window closes without one."
                      }
                    },
                    "required": [
                      "answer",
                      "decidedAt",
                      "offerRevision",
                      "operationId",
                      "source"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "foundCondition": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": ["nm", "lp", "mp", "hp", "dmg", "no_damage_found"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "id": {
                "type": "string"
              },
              "lineIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "offer": {
                "type": "object",
                "properties": {
                  "condition": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["nm", "lp", "mp", "hp", "dmg"]
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Condition of the offered replacement card, when graded."
                  },
                  "id": {
                    "type": "string"
                  },
                  "kind": {
                    "type": "string",
                    "enum": ["replacement", "no_offer"],
                    "description": "replacement offers one reserved card; no_offer means the only choice is removing the card."
                  },
                  "product": {
                    "description": "The SKU of the offered replacement card, or null for no_offer.",
                    "type": ["string", "null"]
                  },
                  "readableAt": {
                    "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))$"
                  },
                  "responseDeadlineAt": {
                    "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))$"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "condition",
                  "id",
                  "kind",
                  "product",
                  "readableAt",
                  "responseDeadlineAt",
                  "revision"
                ],
                "additionalProperties": false
              },
              "ordered": {
                "type": "object",
                "properties": {
                  "condition": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": ["nm", "lp", "mp", "hp", "dmg"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "product": {
                    "type": "string"
                  },
                  "sku": {
                    "type": ["string", "null"]
                  }
                },
                "required": ["condition", "product", "sku"],
                "additionalProperties": false
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "awaiting_answer",
                  "received",
                  "pending",
                  "applied",
                  "refused"
                ]
              },
              "packCardOrdinal": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "type": "string",
                "enum": ["condition_mismatch", "missing", "damaged"]
              },
              "responseDeadlineAt": {
                "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))$"
              },
              "unitIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "decision",
              "foundCondition",
              "id",
              "lineIndex",
              "offer",
              "ordered",
              "outcome",
              "packCardOrdinal",
              "reason",
              "responseDeadlineAt",
              "unitIndex"
            ],
            "additionalProperties": false
          }
        },
        "required": ["answer", "operationId", "outcome", "unit"],
        "additionalProperties": false
      },
      "title": "Answer a packing exception",
      "operation": "answerPackingException"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Reviews a proposed order without creating it. For a redemption in Test or Live, set orderKind to redemption to check the exact destination. A rejected, unavailable or unconfirmed address cannot advance. Recheck any corrections before placing the order; a quote or autoAdvance alone does not authorize creation. Set rateContext.physicalSource to {} and copy physicalSource.selected unchanged as fulfillmentSource. Pass the same deliveryConfirmation to preview and quote; an omitted value means none. For priced shipping, quote the same recipient, products and source, then preview the exact named service and pass the quote selection as shippingQuote. Preview again when any input changes. Existing unquoted callers can pass preview's requestedService.selected and requestedService.review as requestedShippingService and requestedShippingServiceReview.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "deliveryConfirmation": {
            "type": "string",
            "enum": [
              "none",
              "delivery",
              "signature",
              "adult_signature",
              "direct_signature"
            ]
          },
          "lines": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "declaredUnitValue": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    }
                  },
                  "required": ["amount"],
                  "additionalProperties": false
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100000
                }
              },
              "required": ["productId", "quantity"],
              "additionalProperties": false
            }
          },
          "orderKind": {
            "type": "string",
            "const": "redemption"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "rateContext": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "carrierIds": {
                    "minItems": 1,
                    "maxItems": 25,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "shipFrom": {
                    "type": "object",
                    "properties": {
                      "addressLine1": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      },
                      "addressLine2": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "city": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "company": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "country": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "phone": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 200
                      },
                      "region": {
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "addressLine1",
                      "addressLine2",
                      "city",
                      "company",
                      "country",
                      "email",
                      "name",
                      "phone",
                      "postalCode",
                      "region"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": ["carrierIds", "shipFrom"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "carrierIds": {
                    "minItems": 1,
                    "maxItems": 25,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "requestedShippingService": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "physicalSource": {
                    "type": "object",
                    "properties": {
                      "selected": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "configurationRevision": {
                                "type": "string",
                                "pattern": "^[1-9][0-9]*$"
                              },
                              "sourceSignature": {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$"
                              },
                              "physicalOriginEquivalenceRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              },
                              "v1WarehouseId": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "configurationRevision",
                              "sourceSignature",
                              "physicalOriginEquivalenceRef",
                              "v1WarehouseId"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "const": "test"
                              },
                              "configurationRevision": {
                                "type": "string",
                                "pattern": "^[1-9][0-9]*$"
                              },
                              "sourceSignature": {
                                "type": "string",
                                "pattern": "^[0-9a-f]{64}$"
                              },
                              "physicalOriginEquivalenceRef": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200
                              }
                            },
                            "required": [
                              "mode",
                              "configurationRevision",
                              "sourceSignature",
                              "physicalOriginEquivalenceRef"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["carrierIds", "physicalSource"],
                "additionalProperties": false
              }
            ]
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": "string",
                "maxLength": 500
              },
              "addressLine2": {
                "type": "string",
                "maxLength": 500
              },
              "city": {
                "type": "string",
                "maxLength": 200
              },
              "company": {
                "type": "string",
                "maxLength": 200
              },
              "country": {
                "type": "string",
                "maxLength": 200
              },
              "email": {
                "type": "string",
                "maxLength": 200
              },
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "phone": {
                "type": "string",
                "maxLength": 200
              },
              "postalCode": {
                "type": "string",
                "maxLength": 200
              },
              "region": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "addressLine1",
              "addressLine2",
              "city",
              "company",
              "country",
              "email",
              "name",
              "phone",
              "postalCode",
              "region"
            ],
            "additionalProperties": false
          },
          "selectedAddress": {
            "type": "string",
            "enum": ["edited", "original"]
          }
        },
        "required": [
          "lines",
          "organizationId",
          "rateContext",
          "recipient",
          "selectedAddress"
        ],
        "additionalProperties": false
      },
      "name": "orders_preview",
      "outputSchema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": "string"
              },
              "addressLine2": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "company": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              },
              "postalCode": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "candidate": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "addressLine1": {
                        "type": "string"
                      },
                      "addressLine2": {
                        "type": "string"
                      },
                      "city": {
                        "type": "string"
                      },
                      "company": {
                        "type": "string"
                      },
                      "country": {
                        "type": "string"
                      },
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "phone": {
                        "type": "string"
                      },
                      "postalCode": {
                        "type": "string"
                      },
                      "region": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "addressLine1",
                      "addressLine2",
                      "city",
                      "company",
                      "country",
                      "email",
                      "name",
                      "phone",
                      "postalCode",
                      "region"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "provider": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": ["string", "null"]
                  },
                  "field": {
                    "type": ["string", "null"]
                  },
                  "outcome": {
                    "type": "string",
                    "enum": ["accepted", "not_run", "rejected", "unavailable"]
                  },
                  "rateCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "requestId": {
                    "type": ["string", "null"]
                  }
                },
                "required": [
                  "code",
                  "field",
                  "outcome",
                  "rateCount",
                  "requestId"
                ],
                "additionalProperties": false
              },
              "reason": {
                "type": ["string", "null"]
              },
              "selected": {
                "type": "string",
                "enum": ["edited", "original"]
              },
              "state": {
                "type": "string",
                "enum": [
                  "invalid-required-field",
                  "needs-review",
                  "passed-unchanged",
                  "provider-unavailable"
                ]
              }
            },
            "required": [
              "addressLine1",
              "addressLine2",
              "city",
              "company",
              "country",
              "email",
              "name",
              "phone",
              "postalCode",
              "region",
              "candidate",
              "provider",
              "reason",
              "selected",
              "state"
            ],
            "additionalProperties": false
          },
          "autoAdvance": {
            "type": "boolean"
          },
          "eligibility": {
            "type": "string",
            "enum": ["ineligible", "ready", "unavailable"]
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "revision": {
                  "type": ["string", "null"]
                },
                "sku": {
                  "type": ["string", "null"]
                },
                "weight": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "unit": {
                          "type": "string"
                        },
                        "value": {
                          "type": "number"
                        }
                      },
                      "required": ["unit", "value"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["productId", "revision", "sku", "weight"],
              "additionalProperties": false
            }
          },
          "reviewId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "requestedService": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": ["ready", "unavailable"]
              },
              "selected": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "choices": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                }
              },
              "review": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "type": ["string", "null"]
              }
            },
            "required": ["state", "selected", "choices", "review", "reason"],
            "additionalProperties": false
          },
          "physicalSource": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string",
                "enum": ["unavailable", "choice", "ready"]
              },
              "selected": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "configurationRevision": {
                            "type": "string",
                            "pattern": "^[1-9][0-9]*$"
                          },
                          "sourceSignature": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "physicalOriginEquivalenceRef": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "v1WarehouseId": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "configurationRevision",
                          "sourceSignature",
                          "physicalOriginEquivalenceRef",
                          "v1WarehouseId"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "const": "test"
                          },
                          "configurationRevision": {
                            "type": "string",
                            "pattern": "^[1-9][0-9]*$"
                          },
                          "sourceSignature": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{64}$"
                          },
                          "physicalOriginEquivalenceRef": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          }
                        },
                        "required": [
                          "mode",
                          "configurationRevision",
                          "sourceSignature",
                          "physicalOriginEquivalenceRef"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "choices": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "selection": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "configurationRevision": {
                              "type": "string",
                              "pattern": "^[1-9][0-9]*$"
                            },
                            "sourceSignature": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "physicalOriginEquivalenceRef": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "v1WarehouseId": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "configurationRevision",
                            "sourceSignature",
                            "physicalOriginEquivalenceRef",
                            "v1WarehouseId"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "const": "test"
                            },
                            "configurationRevision": {
                              "type": "string",
                              "pattern": "^[1-9][0-9]*$"
                            },
                            "sourceSignature": {
                              "type": "string",
                              "pattern": "^[0-9a-f]{64}$"
                            },
                            "physicalOriginEquivalenceRef": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            }
                          },
                          "required": [
                            "mode",
                            "configurationRevision",
                            "sourceSignature",
                            "physicalOriginEquivalenceRef"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "addressLine1": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        },
                        "addressLine2": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "city": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "company": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "country": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "name": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "region": {
                          "type": "string",
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "addressLine1",
                        "addressLine2",
                        "city",
                        "company",
                        "country",
                        "email",
                        "name",
                        "phone",
                        "postalCode",
                        "region"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": ["selection", "address"],
                  "additionalProperties": false
                }
              },
              "reason": {
                "type": ["string", "null"]
              }
            },
            "required": ["state", "selected", "choices", "reason"],
            "additionalProperties": false
          }
        },
        "required": [
          "address",
          "autoAdvance",
          "eligibility",
          "issues",
          "products",
          "reviewId"
        ],
        "additionalProperties": false
      },
      "title": "Preview order",
      "operation": "previewOrder"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Optional declaredUnitValues accept one {productId, amount} entry per distinct selected product, in USD per unit. Repeated copies share that unit value. The returned lines include declaredUnitValue, and the returned pack retains the overrides. Duplicate or unselected product entries are refused. Values do not change the frozen source digest or catalog defaults. Preview a whole published pack or selected one-based cardOrdinals within the current organization and verified deployment. Omit cardOrdinals for the whole pack; each selected ordinal may appear once. The response includes the frozen source revision and digest, exact catalog products and recorded conditions, and quantity lines that combine repeated exact variants. Pass the returned lines into createRedemptionOrder for the whole pack or the previewed subset. To select cards after fetching the whole pack, use their productId and condition from cards and combine repeated products into quantities. A Live caller using the pack input can pass the returned pack object unchanged instead of lines. Preview and quote the resolved lines with the same recipient and physical source before submitting a priced redemption. A stale revision or digest requires another preview; an exact submission-key replay preserves the selected source identities. This convenience does not grant protocol authority, allocate a serialized physical copy, restore a token or escrow, or authorize unrevealed content. Test can preview explicitly copied published packs in its active generation. The copy preserves recorded raw conditions and resolves separate Test catalog products with sufficient synthetic stock. Use the returned explicit lines for Test redemption; frozen pack creation remains Live-only. Missing or revoked Test copies never fall back to Live.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cardOrdinals": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            }
          },
          "declaredUnitValues": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "string",
                  "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                }
              },
              "required": ["amount", "productId"],
              "additionalProperties": false
            }
          },
          "deploymentRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "packReference": {
            "type": "string",
            "pattern": "^0x[0-9a-f]{64}$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["deploymentRef", "packReference", "organizationId"],
        "additionalProperties": false
      },
      "name": "orders_preview_pack_redemption",
      "outputSchema": {
        "type": "object",
        "properties": {
          "cards": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "condition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ordinal": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 10
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                }
              },
              "required": ["condition", "ordinal", "productId"],
              "additionalProperties": false
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "declaredUnitValue": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    }
                  },
                  "required": ["amount"],
                  "additionalProperties": false
                },
                "condition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": ["condition", "productId", "quantity"],
              "additionalProperties": false
            }
          },
          "pack": {
            "type": "object",
            "properties": {
              "cardOrdinals": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 10
                }
              },
              "declaredUnitValues": {
                "minItems": 1,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "productId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    }
                  },
                  "required": ["amount", "productId"],
                  "additionalProperties": false
                }
              },
              "deploymentRef": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "packReference": {
                "type": "string",
                "pattern": "^0x[0-9a-f]{64}$"
              },
              "sourceContentRevision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "sourceDigest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              }
            },
            "required": [
              "deploymentRef",
              "packReference",
              "sourceContentRevision",
              "sourceDigest"
            ],
            "additionalProperties": false
          }
        },
        "required": ["cards", "lines", "pack"],
        "additionalProperties": false
      },
      "title": "Preview pack redemption",
      "operation": "previewPackRedemption"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Pull a Ready order back to hold",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "orderId",
          "organizationId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_pullback",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": ["id"],
            "additionalProperties": false
          },
          "warning": {
            "type": "string",
            "const": "Picking may already have started. This attempt does not prove physical work stopped."
          }
        },
        "required": ["effects", "operationId", "outcome", "order", "warning"],
        "additionalProperties": false
      },
      "title": "Pull back order",
      "operation": "pullBackOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Pull an exact set of Ready orders back to hold",
      "inputSchema": {
        "type": "object",
        "properties": {
          "orders": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "expectedRevision": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "orderId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                }
              },
              "required": ["expectedRevision", "orderId"],
              "additionalProperties": false
            }
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["orders", "organizationId", "submissionKey"],
        "additionalProperties": false
      },
      "name": "orders_pullback_set",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "orders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "outcome": {
                  "type": "string",
                  "enum": ["confirmed", "rejected", "unknown"]
                }
              },
              "required": ["id", "outcome"],
              "additionalProperties": false
            }
          },
          "warning": {
            "type": "string",
            "const": "Picking may already have started. This attempt does not prove physical work stopped."
          }
        },
        "required": ["effects", "operationId", "outcome", "orders", "warning"],
        "additionalProperties": false
      },
      "title": "Pull back order set",
      "operation": "pullBackOrderSet"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Release a held order",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "release": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "immediate"
                  }
                },
                "required": ["mode"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "scheduled"
                  },
                  "releaseOn": {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  }
                },
                "required": ["mode", "releaseOn"],
                "additionalProperties": false
              }
            ]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "orderId",
          "organizationId",
          "release",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_release",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "release": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "const": "immediate"
                      }
                    },
                    "required": ["mode"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "const": "scheduled"
                      },
                      "releaseOn": {
                        "type": "string"
                      }
                    },
                    "required": ["mode", "releaseOn"],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": ["id", "release"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "order"],
        "additionalProperties": false
      },
      "title": "Release order",
      "operation": "releaseOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Release an exact set of held orders",
      "inputSchema": {
        "type": "object",
        "properties": {
          "orders": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "expectedRevision": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "orderId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                }
              },
              "required": ["expectedRevision", "orderId"],
              "additionalProperties": false
            }
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "release": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "immediate"
                  }
                },
                "required": ["mode"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "scheduled"
                  },
                  "releaseOn": {
                    "type": "string",
                    "format": "date",
                    "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])))$"
                  }
                },
                "required": ["mode", "releaseOn"],
                "additionalProperties": false
              }
            ]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["orders", "organizationId", "release", "submissionKey"],
        "additionalProperties": false
      },
      "name": "orders_release_set",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "orders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "outcome": {
                  "type": "string",
                  "enum": ["confirmed", "rejected", "unknown"]
                },
                "release": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "const": "immediate"
                            }
                          },
                          "required": ["mode"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "const": "scheduled"
                            },
                            "releaseOn": {
                              "type": "string"
                            }
                          },
                          "required": ["mode", "releaseOn"],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["id", "outcome", "release"],
              "additionalProperties": false
            }
          }
        },
        "required": ["effects", "operationId", "outcome", "orders"],
        "additionalProperties": false
      },
      "title": "Release order set",
      "operation": "releaseOrderSet"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Update a held order",
      "inputSchema": {
        "type": "object",
        "properties": {
          "changes": {
            "type": "object",
            "properties": {
              "customerNotes": {
                "description": "Omit to preserve the current provider value; send null or an empty string to clear it. Confirmation requires provider readback.",
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lines": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "declaredUnitValue": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                        }
                      },
                      "required": ["amount"],
                      "additionalProperties": false
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "productId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 100000
                    },
                    "sku": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "unitPrice": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    }
                  },
                  "required": ["name", "quantity", "unitPrice"],
                  "additionalProperties": false
                }
              },
              "recipient": {
                "type": "object",
                "properties": {
                  "addressLine1": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressLine2": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressLine3": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "city": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "company": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "contactName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "country": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "countryCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "postalCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "state": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "street1": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "street2": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "street3": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 512
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "requestedShippingService": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "expectedRevision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "changes",
          "expectedRevision",
          "orderId",
          "organizationId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "orders_update",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "order": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "revision": {
                "type": "string"
              }
            },
            "required": ["id", "revision"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "order"],
        "additionalProperties": false
      },
      "title": "Update held order",
      "operation": "updateHeldOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Create an organization",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "slug": {
            "type": "string",
            "minLength": 3,
            "maxLength": 48,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["name", "slug", "submissionKey"],
        "additionalProperties": false
      },
      "name": "organizations_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "organization": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": ["viewer", "member", "admin", "owner"]
              },
              "slug": {
                "type": "string"
              }
            },
            "required": ["id", "name", "role", "slug"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "organization"],
        "additionalProperties": false
      },
      "title": "Create organization",
      "operation": "createOrganization"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get an organization",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "organizations_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": ["viewer", "member", "admin", "owner"]
          },
          "slug": {
            "type": "string"
          }
        },
        "required": ["id", "name", "role", "slug"],
        "additionalProperties": false
      },
      "title": "Get organization",
      "operation": "getOrganization"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List your organizations",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "name": "organizations_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": "string",
                  "enum": ["viewer", "member", "admin", "owner"]
                },
                "slug": {
                  "type": "string"
                }
              },
              "required": ["id", "name", "role", "slug"],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List organizations",
      "operation": "listOrganizations"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Rename an organization",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["expectedName", "name", "organizationId", "submissionKey"],
        "additionalProperties": false
      },
      "name": "organizations_update",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "organization": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_-]+$"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string",
                "enum": ["viewer", "member", "admin", "owner"]
              },
              "slug": {
                "type": "string"
              }
            },
            "required": ["id", "name", "role", "slug"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "organization"],
        "additionalProperties": false
      },
      "title": "Update organization",
      "operation": "updateOrganization"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Read data.items containing notification delivery outcomes for one known event in the current organization and immutable mode. Each item identifies deliveryId, eventId and subscriptionId with status, attempt count, timing and safe failure information. Secrets and receiver response bodies are never returned. Disabling outbound delivery does not prevent authorized visibility. A delivered status records the receiver HTTP acknowledgement and does not prove a downstream business action, carrier handoff or partner acceptance. A Test captured status records capturedAt without a receiver HTTP status or acknowledgement.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["eventId", "organizationId"],
        "additionalProperties": false
      },
      "name": "partner_events_deliveries_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "abandonedAt": {
                  "anyOf": [
                    {
                      "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)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "attemptCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "capturedAt": {
                  "anyOf": [
                    {
                      "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)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deliveredAt": {
                  "anyOf": [
                    {
                      "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)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deliveryId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "eventId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "lastAttemptedAt": {
                  "anyOf": [
                    {
                      "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)))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastFailure": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "delivery_failure",
                        "endpoint_revoked",
                        "receiver_refused",
                        "receiver_retryable_status",
                        "transport_unavailable",
                        "unconfigured",
                        "unsafe_endpoint"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastHttpStatus": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 100,
                      "maximum": 599
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nextAttemptAt": {
                  "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)))$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "abandoned",
                    "captured",
                    "claimed",
                    "delivered",
                    "pending"
                  ]
                },
                "subscriptionId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              },
              "required": [
                "abandonedAt",
                "attemptCount",
                "capturedAt",
                "deliveredAt",
                "deliveryId",
                "eventId",
                "lastAttemptedAt",
                "lastFailure",
                "lastHttpStatus",
                "nextAttemptAt",
                "status",
                "subscriptionId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": ["items"],
        "additionalProperties": false
      },
      "title": "List partner event deliveries",
      "operation": "listPartnerEventDeliveries"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Queue one named abandoned, delivered or Test-captured notification for another bounded run under the same event ID and body. The HTTP response names deliveryId with pending status; it is not receiver acknowledgement. The endpoint must remain active and its private delivery binding must match current configuration. A Test replay reuses the same capture identity and does not contact a receiver. Pending or claimed deliveries are not replayed. Each run is bounded to eight attempts. This operation never retries order creation, cancellation, deposit acceptance, stock, minting, billing or another business effect. Current write-capable organization keys may use it within their exact organization and immutable mode.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["deliveryId", "organizationId"],
        "additionalProperties": false
      },
      "name": "partner_events_deliveries_replay",
      "outputSchema": {
        "type": "object",
        "properties": {
          "deliveryId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "status": {
            "type": "string",
            "const": "pending"
          }
        },
        "required": ["deliveryId", "status"],
        "additionalProperties": false
      },
      "title": "Replay partner event delivery",
      "operation": "replayPartnerEventDelivery"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Poll durable version 1 events for the current organization and immutable mode with after and a limit from 1 to 100. The HTTP result is data.items plus data.checkpoint; meta.requestId is a request identifier, not a checkpoint. Process events in sequence order, deduplicate stable event IDs and store the checkpoint only after durable ingestion. Repeat the prior after value after a failed ingestion and continue with returned checkpoints until an empty page. Polling and current scope remain independent of outbound signing configuration. Assessment and acceptance are distinct; stable unitRefs identify cards across count revisions. This read acknowledges no delivery and repeats no business effect.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "after": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "partner_events_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "checkpoint": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "entity": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "kind": {
                          "type": "string",
                          "enum": ["deposit", "order"]
                        },
                        "revision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["id", "kind", "revision"],
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "occurredAt": {
                      "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)))$"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": ["live", "test"]
                        },
                        "organizationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["mode", "organizationId"],
                      "additionalProperties": false
                    },
                    "sequence": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "version": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "assessment": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "assessedCondition": {
                                "type": "string",
                                "enum": [
                                  "nm",
                                  "lp",
                                  "mp",
                                  "hp",
                                  "dmg",
                                  "no_damage_found"
                                ]
                              },
                              "productId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "receiptLineId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "revision": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unitRefs": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "variantSku": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "available"
                                      },
                                      "value": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      }
                                    },
                                    "required": ["kind", "value"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "unavailable"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "not_applicable"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "required": [
                              "assessedCondition",
                              "productId",
                              "quantity",
                              "receiptLineId",
                              "revision",
                              "unitRefs",
                              "variantSku"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "declarationRevision": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "depositRef": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "purchaseOrderId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "acceptance": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "not_accepted"
                                }
                              },
                              "required": ["kind"],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "stale"
                                },
                                "revision": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": ["kind", "revision"],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "assessedCondition": {
                                        "type": "string",
                                        "enum": [
                                          "nm",
                                          "lp",
                                          "mp",
                                          "hp",
                                          "dmg",
                                          "no_damage_found"
                                        ]
                                      },
                                      "productId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "quantity": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "receiptLineId": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      },
                                      "revision": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "unitRefs": {
                                        "minItems": 1,
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 128
                                        }
                                      },
                                      "variantSku": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "available"
                                              },
                                              "value": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 256
                                              }
                                            },
                                            "required": ["kind", "value"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "unavailable"
                                              }
                                            },
                                            "required": ["kind"],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "kind": {
                                                "type": "string",
                                                "const": "not_applicable"
                                              }
                                            },
                                            "required": ["kind"],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "assessedCondition",
                                      "productId",
                                      "quantity",
                                      "receiptLineId",
                                      "revision",
                                      "unitRefs",
                                      "variantSku"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "current"
                                },
                                "revision": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": ["items", "kind", "revision"],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "assessment",
                        "declarationRevision",
                        "depositRef",
                        "purchaseOrderId",
                        "acceptance"
                      ],
                      "additionalProperties": false
                    },
                    "type": {
                      "type": "string",
                      "const": "deposit.assessed"
                    }
                  },
                  "required": [
                    "entity",
                    "id",
                    "occurredAt",
                    "scope",
                    "sequence",
                    "version",
                    "data",
                    "type"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "entity": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "kind": {
                          "type": "string",
                          "enum": ["deposit", "order"]
                        },
                        "revision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["id", "kind", "revision"],
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "occurredAt": {
                      "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)))$"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": ["live", "test"]
                        },
                        "organizationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["mode", "organizationId"],
                      "additionalProperties": false
                    },
                    "sequence": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "version": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "assessment": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "assessedCondition": {
                                "type": "string",
                                "enum": [
                                  "nm",
                                  "lp",
                                  "mp",
                                  "hp",
                                  "dmg",
                                  "no_damage_found"
                                ]
                              },
                              "productId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "receiptLineId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              },
                              "revision": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unitRefs": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "variantSku": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "available"
                                      },
                                      "value": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      }
                                    },
                                    "required": ["kind", "value"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "unavailable"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "not_applicable"
                                      }
                                    },
                                    "required": ["kind"],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "required": [
                              "assessedCondition",
                              "productId",
                              "quantity",
                              "receiptLineId",
                              "revision",
                              "unitRefs",
                              "variantSku"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "declarationRevision": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "depositRef": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "purchaseOrderId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "acceptance": {
                          "type": "object",
                          "properties": {
                            "items": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "assessedCondition": {
                                    "type": "string",
                                    "enum": [
                                      "nm",
                                      "lp",
                                      "mp",
                                      "hp",
                                      "dmg",
                                      "no_damage_found"
                                    ]
                                  },
                                  "productId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "quantity": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "receiptLineId": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  "revision": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "unitRefs": {
                                    "minItems": 1,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "variantSku": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "available"
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 256
                                          }
                                        },
                                        "required": ["kind", "value"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "unavailable"
                                          }
                                        },
                                        "required": ["kind"],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "const": "not_applicable"
                                          }
                                        },
                                        "required": ["kind"],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "assessedCondition",
                                  "productId",
                                  "quantity",
                                  "receiptLineId",
                                  "revision",
                                  "unitRefs",
                                  "variantSku"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "kind": {
                              "type": "string",
                              "const": "current"
                            },
                            "revision": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["items", "kind", "revision"],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "assessment",
                        "declarationRevision",
                        "depositRef",
                        "purchaseOrderId",
                        "acceptance"
                      ],
                      "additionalProperties": false
                    },
                    "type": {
                      "type": "string",
                      "const": "deposit.accepted"
                    }
                  },
                  "required": [
                    "entity",
                    "id",
                    "occurredAt",
                    "scope",
                    "sequence",
                    "version",
                    "data",
                    "type"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "entity": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "kind": {
                          "type": "string",
                          "enum": ["deposit", "order"]
                        },
                        "revision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["id", "kind", "revision"],
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "occurredAt": {
                      "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)))$"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": ["live", "test"]
                        },
                        "organizationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["mode", "organizationId"],
                      "additionalProperties": false
                    },
                    "sequence": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "version": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "providerOrderNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "shipments": {
                          "minItems": 1,
                          "maxItems": 2000,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "carrier": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "shipDate": {
                                "anyOf": [
                                  {
                                    "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)))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "shipmentId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "required": [
                              "carrier",
                              "number",
                              "shipDate",
                              "shipmentId"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": ["providerOrderNumber", "shipments"],
                      "additionalProperties": false
                    },
                    "type": {
                      "type": "string",
                      "const": "order.shipped"
                    }
                  },
                  "required": [
                    "entity",
                    "id",
                    "occurredAt",
                    "scope",
                    "sequence",
                    "version",
                    "data",
                    "type"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "entity": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "kind": {
                          "type": "string",
                          "enum": ["deposit", "order"]
                        },
                        "revision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["id", "kind", "revision"],
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "occurredAt": {
                      "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)))$"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "type": "string",
                          "enum": ["live", "test"]
                        },
                        "organizationId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "required": ["mode", "organizationId"],
                      "additionalProperties": false
                    },
                    "sequence": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "version": {
                      "type": "number",
                      "const": 1
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "cancelledAt": {
                          "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)))$"
                        },
                        "status": {
                          "type": "string",
                          "const": "cancelled"
                        }
                      },
                      "required": ["cancelledAt", "status"],
                      "additionalProperties": false
                    },
                    "type": {
                      "type": "string",
                      "const": "order.cancelled"
                    }
                  },
                  "required": [
                    "entity",
                    "id",
                    "occurredAt",
                    "scope",
                    "sequence",
                    "version",
                    "data",
                    "type"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          }
        },
        "required": ["checkpoint", "items"],
        "additionalProperties": false
      },
      "title": "List partner events",
      "operation": "listPartnerEvents"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Register a receiver URL for this organization and immutable mode. The request contains only url; delivery configuration and signing material remain private. Configured Test delivery records a capture without contacting the receiver or using a Live signing key. Delivery supports public HTTPS on port 443, rechecks resolved addresses and does not follow redirects. Repeating the exact active URL with the same configured binding returns its existing subscription; another binding conflicts. The HTTP response is data.subscription with subscriptionId, url, createdAt and revokedAt. A null revokedAt means active. Creation requires current delivery configuration and does not establish a business event, successful receiver delivery or provider acceptance.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          }
        },
        "required": ["organizationId", "url"],
        "additionalProperties": false
      },
      "name": "partner_events_subscriptions_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "subscription": {
            "type": "object",
            "properties": {
              "createdAt": {
                "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)))$"
              },
              "revokedAt": {
                "anyOf": [
                  {
                    "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)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "subscriptionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "url": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              }
            },
            "required": ["createdAt", "revokedAt", "subscriptionId", "url"],
            "additionalProperties": false
          }
        },
        "required": ["subscription"],
        "additionalProperties": false
      },
      "title": "Create partner event subscription",
      "operation": "createPartnerEventSubscription"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Read one known receiver subscription in the current organization and immutable mode. The HTTP result is data.subscription with subscriptionId, url, createdAt and revokedAt; null revokedAt means active. Signing secrets and internal references are never returned. Current read-capable organization keys may use this operation. Disabling outbound delivery does not prevent an authorized read of existing subscription state.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "subscriptionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": ["organizationId", "subscriptionId"],
        "additionalProperties": false
      },
      "name": "partner_events_subscriptions_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "subscription": {
            "type": "object",
            "properties": {
              "createdAt": {
                "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)))$"
              },
              "revokedAt": {
                "anyOf": [
                  {
                    "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)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "subscriptionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "url": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              }
            },
            "required": ["createdAt", "revokedAt", "subscriptionId", "url"],
            "additionalProperties": false
          }
        },
        "required": ["subscription"],
        "additionalProperties": false
      },
      "title": "Get partner event subscription",
      "operation": "getPartnerEventSubscription"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Revoke one known receiver subscription in the current organization and immutable mode. Revocation remains available when outbound signing configuration is disabled or missing. It stops pending deliveries and the active claim is rechecked immediately before dispatch; a request already admitted or in flight can still arrive. Keep receiver ingestion idempotent and reconcile current facts. Revocation does not erase business events or undo a downstream effect, and never returns signing material. Current write-capable organization keys may use this operation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "subscriptionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": ["organizationId", "subscriptionId"],
        "additionalProperties": false
      },
      "name": "partner_events_subscriptions_revoke",
      "outputSchema": {
        "type": "object",
        "properties": {
          "subscriptionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": ["subscriptionId"],
        "additionalProperties": false
      },
      "title": "Revoke partner event subscription",
      "operation": "revokePartnerEventSubscription"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Prepare the native bundle component import",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "expectedRevision": {
            "type": "string",
            "minLength": 1
          },
          "components": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 1000000
                }
              },
              "required": ["productId", "quantity"],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "organizationId",
          "productId",
          "expectedRevision",
          "components"
        ],
        "additionalProperties": false
      },
      "name": "products_bundle_prepare",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "verified": {
            "type": "boolean",
            "const": false
          }
        },
        "required": ["content", "filename", "verified"],
        "additionalProperties": false
      },
      "title": "Prepare bundle component import",
      "operation": "prepareProductBundle"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Set a product's native bundle flag",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "isBundle": {
            "type": "boolean"
          },
          "expectedRevision": {
            "type": "string",
            "minLength": 1
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "organizationId",
          "productId",
          "isBundle",
          "expectedRevision",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "products_bundle_set",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "productId": {
            "type": "string"
          },
          "isBundle": {
            "type": "boolean"
          },
          "revision": {
            "type": "string"
          }
        },
        "required": [
          "effects",
          "operationId",
          "outcome",
          "productId",
          "isBundle",
          "revision"
        ],
        "additionalProperties": false
      },
      "title": "Set native product bundle flag",
      "operation": "setProductBundle"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Read product containment and actual stock",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "products_configuration_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "product": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "sku": {
                    "type": "string"
                  },
                  "providerRevision": {
                    "type": ["string", "null"]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "standalone",
                      "bundle",
                      "condition_variant",
                      "unverified"
                    ]
                  },
                  "packaging": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "unitLabel": {
                            "type": "string"
                          },
                          "unitsPerCarton": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitsPerCase": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "revision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "unitLabel",
                          "unitsPerCarton",
                          "unitsPerCase",
                          "revision"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stock": {
                    "type": "object",
                    "properties": {
                      "physical": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "example": null
                      },
                      "available": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "example": null
                      },
                      "committed": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "example": null
                      }
                    },
                    "required": ["physical", "available", "committed"],
                    "additionalProperties": false
                  },
                  "containerEquivalents": {
                    "type": "object",
                    "properties": {
                      "cartons": {
                        "type": ["number", "null"]
                      },
                      "cases": {
                        "type": ["number", "null"]
                      }
                    },
                    "required": ["cartons", "cases"],
                    "additionalProperties": false
                  },
                  "bundleCapacity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "components": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "productId": {
                              "type": "string"
                            },
                            "sku": {
                              "type": "string"
                            },
                            "quantity": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["productId", "sku", "quantity"],
                          "additionalProperties": false
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "conversion": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "packSku": {
                            "type": "string"
                          },
                          "packsPerBox": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "potentialPacks": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "loosePacks": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "packSku",
                          "packsPerBox",
                          "potentialPacks",
                          "loosePacks"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reservedForOpening": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "sku",
                  "providerRevision",
                  "kind",
                  "packaging",
                  "stock",
                  "containerEquivalents",
                  "bundleCapacity",
                  "components",
                  "conversion",
                  "reservedForOpening"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "sku": {
                  "type": "string"
                },
                "standalone": {
                  "type": "boolean"
                }
              },
              "required": ["id", "name", "sku", "standalone"],
              "additionalProperties": false
            }
          }
        },
        "required": ["product", "products"],
        "additionalProperties": false
      },
      "title": "Read product configuration",
      "operation": "getProductConfiguration"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a product",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId", "productId"],
        "additionalProperties": false
      },
      "name": "products_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "aliases": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "alias": {
                  "type": "string"
                },
                "storeRef": {
                  "type": "string"
                }
              },
              "required": ["alias", "storeRef"],
              "additionalProperties": false
            }
          },
          "baseSku": {
            "type": "string"
          },
          "binding": {
            "type": "string",
            "enum": ["verified", "unproved"]
          },
          "condition": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["nm", "lp", "mp", "hp", "dmg"]
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": ["string", "null"]
          },
          "sku": {
            "type": ["string", "null"]
          },
          "stock": {
            "type": "object",
            "properties": {
              "available": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ],
                "example": null
              },
              "committed": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ],
                "example": null
              },
              "physical": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ],
                "example": null
              }
            },
            "required": ["available", "committed", "physical"],
            "additionalProperties": false
          },
          "bundleCapacity": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultAliasStoreRef": {
            "type": "string"
          },
          "customs": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "countryOfOrigin": {
                    "type": ["string", "null"]
                  },
                  "declaredValue": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string",
                            "const": "USD"
                          }
                        },
                        "required": ["amount", "currency"],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "description": {
                    "type": ["string", "null"]
                  },
                  "tariffCode": {
                    "type": ["string", "null"]
                  }
                },
                "required": [
                  "countryOfOrigin",
                  "declaredValue",
                  "description",
                  "tariffCode"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": ["string", "null"]
          },
          "weight": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "unit": {
                    "type": ["string", "null"]
                  },
                  "value": {
                    "type": ["number", "null"]
                  }
                },
                "required": ["unit", "value"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "aliases",
          "baseSku",
          "binding",
          "condition",
          "id",
          "name",
          "sku",
          "stock",
          "customs",
          "revision",
          "weight"
        ],
        "additionalProperties": false
      },
      "title": "Get product",
      "operation": "getProduct"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Configure descriptive product packaging",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "productId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "unitLabel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "unitsPerCarton": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              {
                "type": "null"
              }
            ]
          },
          "unitsPerCase": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "organizationId",
          "productId",
          "unitLabel",
          "unitsPerCarton",
          "unitsPerCase",
          "expectedRevision",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "products_packaging_configure",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "packaging": {
            "type": "object",
            "properties": {
              "unitLabel": {
                "type": "string"
              },
              "unitsPerCarton": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unitsPerCase": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "unitLabel",
              "unitsPerCarton",
              "unitsPerCase",
              "revision"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "packaging"],
        "additionalProperties": false
      },
      "title": "Configure product packaging",
      "operation": "configureProductPackaging"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Update product shipping metadata",
      "inputSchema": {
        "type": "object",
        "properties": {
          "aliases": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "alias": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "storeRef": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "required": ["alias", "storeRef"],
              "additionalProperties": false
            }
          },
          "customs": {
            "type": "object",
            "properties": {
              "countryOfOrigin": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "declaredValue": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "string",
                        "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                      }
                    },
                    "required": ["amount"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tariffCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?=(?:\\D*\\d){4,10}\\D*$)\\d+(?:\\.\\d+)*$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "expectedRevision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "productId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          },
          "weight": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string",
                "enum": ["gram", "kilogram", "ounce", "pound"]
              },
              "value": {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 1000000
              }
            },
            "required": ["unit", "value"],
            "additionalProperties": false
          }
        },
        "required": [
          "expectedRevision",
          "organizationId",
          "productId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "products_update",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "product": {
            "type": "object",
            "properties": {
              "aliases": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "alias": {
                      "type": "string"
                    },
                    "storeRef": {
                      "type": "string"
                    }
                  },
                  "required": ["alias", "storeRef"],
                  "additionalProperties": false
                }
              },
              "customs": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "countryOfOrigin": {
                        "type": ["string", "null"]
                      },
                      "declaredValue": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string"
                              },
                              "currency": {
                                "type": "string",
                                "const": "USD"
                              }
                            },
                            "required": ["amount", "currency"],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "description": {
                        "type": ["string", "null"]
                      },
                      "tariffCode": {
                        "type": ["string", "null"]
                      }
                    },
                    "required": [
                      "countryOfOrigin",
                      "declaredValue",
                      "description",
                      "tariffCode"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "defaultAliasStoreRef": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "revision": {
                "type": ["string", "null"]
              },
              "weight": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "unit": {
                        "type": ["string", "null"]
                      },
                      "value": {
                        "type": ["number", "null"]
                      }
                    },
                    "required": ["unit", "value"],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": ["aliases", "customs", "id", "revision", "weight"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "product"],
        "additionalProperties": false
      },
      "title": "Update product shipping metadata",
      "operation": "updateProductFields"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Preview grouped purchase-order CSV or JSON",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "source": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000000
                  },
                  "encoding": {
                    "type": "string",
                    "enum": ["utf-8", "windows-1252"]
                  },
                  "format": {
                    "type": "string",
                    "const": "csv"
                  }
                },
                "required": ["contentBase64", "encoding", "format"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "format": {
                    "type": "string",
                    "const": "json"
                  },
                  "groups": {
                    "minItems": 1,
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "expectedDate": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "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])))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lines": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "condition": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "name": {
                                "type": "string",
                                "maxLength": 500
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "sku": {
                                "type": "string",
                                "maxLength": 500
                              },
                              "sourceRow": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["name", "quantity", "sku"],
                            "additionalProperties": false
                          }
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 2000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderDate": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "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])))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "poNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 200
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["lines"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["format", "groups"],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": ["organizationId", "source"],
        "additionalProperties": false
      },
      "name": "purchase_order_imports_preview",
      "outputSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "eligible": {
                  "type": "boolean"
                },
                "expectedDate": {
                  "type": ["string", "null"]
                },
                "groupId": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "issues": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "condition": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": ["nm", "lp", "mp", "hp", "dmg"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "mapping": {
                        "type": "string",
                        "enum": ["ambiguous", "matched", "missing", "invalid"]
                      },
                      "name": {
                        "type": "string"
                      },
                      "productId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[A-Za-z0-9_-]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "quantity": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sku": {
                        "type": "string"
                      },
                      "sourceRow": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "condition",
                      "mapping",
                      "name",
                      "productId",
                      "quantity",
                      "sku",
                      "sourceRow"
                    ],
                    "additionalProperties": false
                  }
                },
                "note": {
                  "type": ["string", "null"]
                },
                "orderDate": {
                  "type": ["string", "null"]
                },
                "poNumber": {
                  "type": ["string", "null"]
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "sourceRows": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              "required": [
                "eligible",
                "expectedDate",
                "groupId",
                "issues",
                "lines",
                "note",
                "orderDate",
                "poNumber",
                "revision",
                "sourceRows"
              ],
              "additionalProperties": false
            }
          },
          "importId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "sourceHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": ["groups", "importId", "sourceHash"],
        "additionalProperties": false
      },
      "title": "Preview purchase order import",
      "operation": "previewPurchaseOrderImport"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Read purchase-order import outcomes",
      "inputSchema": {
        "type": "object",
        "properties": {
          "importId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["importId", "organizationId"],
        "additionalProperties": false
      },
      "name": "purchase_order_imports_results",
      "outputSchema": {
        "type": "object",
        "properties": {
          "importId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groups": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "groupId": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$"
                      },
                      "poNumber": {
                        "type": ["string", "null"]
                      },
                      "purchaseOrderId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[A-Za-z0-9_-]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "providerPoRef": {
                        "type": ["string", "null"]
                      },
                      "revision": {
                        "type": "string",
                        "pattern": "^[0-9a-f]{64}$"
                      },
                      "sourceRows": {
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    },
                    "required": [
                      "groupId",
                      "poNumber",
                      "purchaseOrderId",
                      "providerPoRef",
                      "revision",
                      "sourceRows"
                    ],
                    "additionalProperties": false
                  }
                },
                "operationId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "outcome": {
                  "type": "string",
                  "enum": ["confirmed", "pending", "rejected", "unknown"]
                },
                "selectedGroupIds": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                },
                "submissionKey": {
                  "type": "string"
                }
              },
              "required": [
                "groups",
                "operationId",
                "outcome",
                "selectedGroupIds",
                "submissionKey"
              ],
              "additionalProperties": false
            }
          },
          "sourceHash": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["importId", "results", "sourceHash"],
        "additionalProperties": false
      },
      "title": "Get purchase-order import results",
      "operation": "getPurchaseOrderImportResults"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Submit an exact reviewed purchase-order group set",
      "inputSchema": {
        "type": "object",
        "properties": {
          "groups": {
            "minItems": 1,
            "maxItems": 5000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groupId": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                }
              },
              "required": ["groupId", "revision"],
              "additionalProperties": false
            }
          },
          "importId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "source": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "contentBase64": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000000
                  },
                  "encoding": {
                    "type": "string",
                    "enum": ["utf-8", "windows-1252"]
                  },
                  "format": {
                    "type": "string",
                    "const": "csv"
                  }
                },
                "required": ["contentBase64", "encoding", "format"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "format": {
                    "type": "string",
                    "const": "json"
                  },
                  "groups": {
                    "minItems": 1,
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "expectedDate": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "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])))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lines": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "condition": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": ["nm", "lp", "mp", "hp", "dmg"]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "name": {
                                "type": "string",
                                "maxLength": 500
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "sku": {
                                "type": "string",
                                "maxLength": 500
                              },
                              "sourceRow": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["name", "quantity", "sku"],
                            "additionalProperties": false
                          }
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 2000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderDate": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "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])))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "poNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 200
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": ["lines"],
                      "additionalProperties": false
                    }
                  }
                },
                "required": ["format", "groups"],
                "additionalProperties": false
              }
            ]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "groups",
          "importId",
          "organizationId",
          "source",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "purchase_order_imports_submit",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "groupId": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "poNumber": {
                  "type": "string"
                },
                "purchaseOrderId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "providerPoRef": {
                  "type": ["string", "null"]
                },
                "revision": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "sourceRows": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              "required": [
                "groupId",
                "poNumber",
                "purchaseOrderId",
                "providerPoRef",
                "revision",
                "sourceRows"
              ],
              "additionalProperties": false
            }
          },
          "importId": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "sourceHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          }
        },
        "required": [
          "effects",
          "operationId",
          "outcome",
          "groups",
          "importId",
          "sourceHash"
        ],
        "additionalProperties": false
      },
      "title": "Submit purchase-order import",
      "operation": "submitPurchaseOrderImport"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Create a customer purchase-order declaration in the selected immutable mode. Player deposits require explicit eligibility for that mode and a returnAddress for ship-back. Test eligibility admits configured raw-condition and sealed pack/box/case declarations using isolated inventory and a synthetic prepaid-label association. Live deposits keep their separate customer and deployment controls; Test setup does not activate Live intake or background deposit runs. A raw line may set conditionDeferred to leave its declared grade unset; a sealed line must specify sealedUnit. Use the returned local PO ID to read deposit-results after assessment and acceptance. An exact submission-key replay returns its original receipt; changed intent conflicts. Graded-card deposits, cert lookups and exact-slab workflows are deferred from the current integration scope. Test creates no provider PO, real label purchase, charge or shipment.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "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])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lines": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100000
                },
                "conditionDeferred": {
                  "type": "boolean"
                },
                "slabs": {
                  "description": "Legacy compatibility field. Graded-card deposits and cert lookups are deferred from the current integration scope; use supported raw-card and sealed-item declarations.",
                  "minItems": 1,
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "grader": {
                        "type": "string",
                        "enum": ["psa", "bgs", "cgc"]
                      },
                      "cert": {
                        "type": "string",
                        "maxLength": 40,
                        "description": "Legacy graded-card certificate identifier retained for compatibility. Graded-card deposits, cert lookups and exact-slab workflows are deferred from the current integration scope."
                      }
                    },
                    "required": ["grader", "cert"],
                    "additionalProperties": false
                  }
                },
                "sealedUnit": {
                  "type": "string",
                  "enum": ["pack", "box", "case"]
                },
                "magneticSlab": {
                  "type": "string",
                  "enum": ["branded", "branded_tamper_seal"]
                },
                "professionalGrading": {
                  "type": "boolean"
                }
              },
              "required": ["productId", "quantity"],
              "additionalProperties": false
            }
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "orderDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "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])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "poNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "registrationKind": {
            "default": "standard",
            "type": "string",
            "enum": ["standard", "player_deposit"]
          },
          "depositRef": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "labelOrigin": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "labelService": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "returnAddress": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressLine1": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "addressLine2": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "city": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "postalCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20
                  },
                  "countryCode": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}$"
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 40
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200,
                        "format": "email",
                        "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "addressLine1",
                  "city",
                  "postalCode",
                  "countryCode"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          },
          "tracking": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["lines", "organizationId", "submissionKey"],
        "additionalProperties": false
      },
      "name": "purchase_orders_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "purchaseOrder": {
            "type": "object",
            "properties": {
              "declarationRevision": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "poNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "providerPoRef": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deposit": {
                "type": "object",
                "properties": {
                  "adapter": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1
                      },
                      "providerVerified": {
                        "type": "boolean",
                        "const": false
                      }
                    },
                    "required": ["id", "label", "providerVerified"],
                    "additionalProperties": false
                  },
                  "depositRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "label": {
                    "type": "object",
                    "properties": {
                      "documentId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "labelRef": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "providerRef": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "tracking": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "documentId",
                      "labelRef",
                      "providerRef",
                      "tracking"
                    ],
                    "additionalProperties": false
                  },
                  "source": {
                    "type": "string",
                    "enum": ["player_deposit"]
                  }
                },
                "required": ["adapter", "depositRef", "label", "source"],
                "additionalProperties": false
              },
              "slabs": {
                "description": "Historical graded-card metadata retained for compatibility. Graded-card deposits and cert lookups are deferred from the current integration scope.",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "cert": {
                      "type": "string",
                      "minLength": 1
                    },
                    "grader": {
                      "type": "string",
                      "enum": ["psa", "bgs", "cgc"]
                    },
                    "lookup": {
                      "type": "string",
                      "enum": ["verified", "pending"]
                    }
                  },
                  "required": ["cert", "grader", "lookup"],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "declarationRevision",
              "id",
              "poNumber",
              "providerPoRef"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "purchaseOrder"],
        "additionalProperties": false
      },
      "title": "Create purchase order",
      "operation": "createPurchaseOrder"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Correct a purchase-order declaration",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedDeclarationRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "lines": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "declaredCondition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "declaredQuantity": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000
                },
                "lineId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "submittedName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "supplierSku": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": ["declaredQuantity", "lineId", "productId"],
              "additionalProperties": false
            }
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "purchaseOrderId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedDeclarationRevision",
          "lines",
          "organizationId",
          "purchaseOrderId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "purchase_orders_declaration_correct",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "purchaseOrder": {
            "type": "object",
            "properties": {
              "declarationRevision": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "lineIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              },
              "poNumber": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "providerPoRef": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deposit": {
                "type": "object",
                "properties": {
                  "providerVerified": {
                    "type": "boolean",
                    "const": false
                  },
                  "depositRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "labelRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "tracking": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "providerVerified",
                  "depositRef",
                  "labelRef",
                  "tracking"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "declarationRevision",
              "id",
              "lineIds",
              "poNumber",
              "providerPoRef"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "purchaseOrder"],
        "additionalProperties": false
      },
      "title": "Correct purchase-order declaration",
      "operation": "correctPurchaseOrderDeclaration"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export purchase orders as CSV",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "purchase_orders_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          }
        },
        "required": ["content", "filename"],
        "additionalProperties": false
      },
      "title": "Export purchase orders",
      "operation": "exportPurchaseOrders"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a purchase order",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "purchaseOrderId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": ["organizationId", "purchaseOrderId"],
        "additionalProperties": false
      },
      "name": "purchase_orders_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "declarationRevision": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "expectedDate": {
            "type": ["string", "null"]
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "standard",
              "player_deposit",
              "unexpected_goods",
              "restock"
            ]
          },
          "orderDate": {
            "type": ["string", "null"]
          },
          "origin": {
            "type": "string",
            "enum": ["customer", "staff_unexpected", "return_restock"]
          },
          "poNumber": {
            "type": "string"
          },
          "providerPoRef": {
            "type": ["string", "null"]
          },
          "tracking": {
            "type": ["string", "null"]
          },
          "arrivals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "arrivalIdentity": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "observedAt": {
                  "type": "string"
                },
                "providerReceiptRef": {
                  "type": ["string", "null"]
                }
              },
              "required": [
                "arrivalIdentity",
                "id",
                "observedAt",
                "providerReceiptRef"
              ],
              "additionalProperties": false
            }
          },
          "counted": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "byCondition": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "condition": {
                          "type": "string",
                          "enum": [
                            "nm",
                            "lp",
                            "mp",
                            "hp",
                            "dmg",
                            "no_damage_found"
                          ]
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["condition", "quantity"],
                      "additionalProperties": false
                    }
                  },
                  "total": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["byCondition", "total"],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "type": ["string", "null"]
          },
          "declaredQuantity": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "baseSku": {
                  "type": "string"
                },
                "counted": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "byCondition": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "condition": {
                                "type": "string",
                                "enum": [
                                  "nm",
                                  "lp",
                                  "mp",
                                  "hp",
                                  "dmg",
                                  "no_damage_found"
                                ]
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["condition", "quantity"],
                            "additionalProperties": false
                          }
                        },
                        "total": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["byCondition", "total"],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "declaredCondition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "declaredQuantity": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "id": {
                  "type": "string"
                },
                "productBindingId": {
                  "type": ["string", "null"]
                },
                "revision": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "submittedName": {
                  "type": "string"
                },
                "supplierSku": {
                  "type": ["string", "null"]
                },
                "variantBindingId": {
                  "type": ["string", "null"]
                },
                "variance": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "baseSku",
                "counted",
                "declaredCondition",
                "declaredQuantity",
                "id",
                "productBindingId",
                "revision",
                "submittedName",
                "supplierSku",
                "variantBindingId",
                "variance"
              ],
              "additionalProperties": false
            }
          },
          "note": {
            "type": ["string", "null"]
          },
          "orderNumber": {
            "type": ["string", "null"]
          },
          "providerReceived": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "lines": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "orderedQuantity": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "receivedQuantity": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "sku": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "orderedQuantity",
                        "receivedQuantity",
                        "sku"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "providerStatus": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "const": "available"
                  }
                },
                "required": ["lines", "providerStatus", "status"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "issue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "layout_unsupported",
                          "pages_incomplete",
                          "row_malformed",
                          "document_mismatch",
                          "sku_ambiguous",
                          "lines_mismatch"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "enum": [
                      "not_linked",
                      "account_unverified",
                      "provider_unavailable",
                      "provider_po_not_found",
                      "not_receiving",
                      "report_invalid"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "const": "unavailable"
                  }
                },
                "required": ["issue", "reason", "status"],
                "additionalProperties": false
              }
            ]
          },
          "undeclared": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "counted": {
                  "type": "object",
                  "properties": {
                    "byCondition": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "condition": {
                            "type": "string",
                            "enum": [
                              "nm",
                              "lp",
                              "mp",
                              "hp",
                              "dmg",
                              "no_damage_found"
                            ]
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["condition", "quantity"],
                        "additionalProperties": false
                      }
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["byCondition", "total"],
                  "additionalProperties": false
                },
                "productBindingId": {
                  "type": "string"
                }
              },
              "required": ["counted", "productBindingId"],
              "additionalProperties": false
            }
          },
          "variance": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "createdAt",
          "declarationRevision",
          "expectedDate",
          "id",
          "kind",
          "orderDate",
          "origin",
          "poNumber",
          "providerPoRef",
          "tracking",
          "arrivals",
          "counted",
          "currency",
          "declaredQuantity",
          "lines",
          "note",
          "orderNumber",
          "providerReceived",
          "undeclared",
          "variance"
        ],
        "additionalProperties": false
      },
      "title": "Get purchase order",
      "operation": "getPurchaseOrder"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Poll the current factual assessment and accepted units of one player-deposit purchase order. Assessment reports current recorded condition, exact product, quantity, stable unitRefs and count revision. Acceptance is current only when the committed acceptance matches all current count revisions; stale or not_accepted carries no accepted units. Current accepted items exclude open disputes and ship-backs. Each variantSku is a stored verified SKU, an explicit unavailable mapping or not_applicable for goods without a condition variant. Acceptance revision tracks commercial acceptance, so reconcile the full current accepted unitRefs on every successful poll, including after each dispute event, rather than skipping an unchanged revision. A stable unitRef remains the card identity; use its count revision as reconciliation evidence and never authorize another mint merely because that revision changed. A count or assessment alone never authorizes tokenization. This read creates no acceptance, shipment or receiver delivery and uses the current organization and mode authority.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "purchaseOrderId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": ["organizationId", "purchaseOrderId"],
        "additionalProperties": false
      },
      "name": "purchase_orders_get_deposit_results",
      "outputSchema": {
        "type": "object",
        "properties": {
          "acceptance": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "not_accepted"
                  }
                },
                "required": ["kind"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "stale"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["kind", "revision"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "assessedCondition": {
                          "type": "string",
                          "enum": [
                            "nm",
                            "lp",
                            "mp",
                            "hp",
                            "dmg",
                            "no_damage_found"
                          ]
                        },
                        "productId": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        "receiptLineId": {
                          "type": "string"
                        },
                        "revision": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9007199254740991
                        },
                        "unitRefs": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "variantSku": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "available"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": ["kind", "value"],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "unavailable"
                                }
                              },
                              "required": ["kind"],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "not_applicable"
                                }
                              },
                              "required": ["kind"],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": [
                        "assessedCondition",
                        "productId",
                        "quantity",
                        "receiptLineId",
                        "revision",
                        "unitRefs",
                        "variantSku"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "kind": {
                    "type": "string",
                    "const": "current"
                  },
                  "revision": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["items", "kind", "revision"],
                "additionalProperties": false
              }
            ]
          },
          "assessment": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assessedCondition": {
                  "type": "string",
                  "enum": ["nm", "lp", "mp", "hp", "dmg", "no_damage_found"]
                },
                "productId": {
                  "type": "string"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "receiptLineId": {
                  "type": "string"
                },
                "revision": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "unitRefs": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "variantSku": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "available"
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": ["kind", "value"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "unavailable"
                        }
                      },
                      "required": ["kind"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "not_applicable"
                        }
                      },
                      "required": ["kind"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "required": [
                "assessedCondition",
                "productId",
                "quantity",
                "receiptLineId",
                "revision",
                "unitRefs",
                "variantSku"
              ],
              "additionalProperties": false
            }
          },
          "declarationRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "depositRef": {
            "type": ["string", "null"]
          },
          "purchaseOrderId": {
            "type": "string"
          }
        },
        "required": [
          "acceptance",
          "assessment",
          "declarationRevision",
          "depositRef",
          "purchaseOrderId"
        ],
        "additionalProperties": false
      },
      "title": "Get deposit results",
      "operation": "getDepositResults"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List purchase orders",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "purchase_orders_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "type": "string"
                },
                "declarationRevision": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "expectedDate": {
                  "type": ["string", "null"]
                },
                "id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "standard",
                    "player_deposit",
                    "unexpected_goods",
                    "restock"
                  ]
                },
                "orderDate": {
                  "type": ["string", "null"]
                },
                "origin": {
                  "type": "string",
                  "enum": ["customer", "staff_unexpected", "return_restock"]
                },
                "poNumber": {
                  "type": "string"
                },
                "providerPoRef": {
                  "type": ["string", "null"]
                },
                "tracking": {
                  "type": ["string", "null"]
                }
              },
              "required": [
                "createdAt",
                "declarationRevision",
                "expectedDate",
                "id",
                "kind",
                "orderDate",
                "origin",
                "poNumber",
                "providerPoRef",
                "tracking"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List purchase orders",
      "operation": "listPurchaseOrders"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Review a customer purchase-order declaration without saving it. Player deposits require explicit eligibility for the selected immutable mode and a returnAddress. Test eligibility uses the current configured Test catalog. Live deposits keep their separate customer and deployment controls; Test setup does not activate Live intake or background deposit runs. The preview preserves each exact raw condition, or returns condition null when conditionDeferred leaves its declared grade unset. Sealed lines must specify sealedUnit. Graded-card deposits, cert lookups and exact-slab workflows are deferred from the current integration scope. Preview reserves no PO number or stock and creates no provider PO, real label purchase, charge or shipment.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "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])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "lines": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100000
                },
                "conditionDeferred": {
                  "type": "boolean"
                },
                "slabs": {
                  "description": "Legacy compatibility field. Graded-card deposits and cert lookups are deferred from the current integration scope; use supported raw-card and sealed-item declarations.",
                  "minItems": 1,
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "grader": {
                        "type": "string",
                        "enum": ["psa", "bgs", "cgc"]
                      },
                      "cert": {
                        "type": "string",
                        "maxLength": 40,
                        "description": "Legacy graded-card certificate identifier retained for compatibility. Graded-card deposits, cert lookups and exact-slab workflows are deferred from the current integration scope."
                      }
                    },
                    "required": ["grader", "cert"],
                    "additionalProperties": false
                  }
                },
                "sealedUnit": {
                  "type": "string",
                  "enum": ["pack", "box", "case"]
                },
                "magneticSlab": {
                  "type": "string",
                  "enum": ["branded", "branded_tamper_seal"]
                },
                "professionalGrading": {
                  "type": "boolean"
                }
              },
              "required": ["productId", "quantity"],
              "additionalProperties": false
            }
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "orderDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "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])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "poNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "registrationKind": {
            "default": "standard",
            "type": "string",
            "enum": ["standard", "player_deposit"]
          },
          "depositRef": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "labelOrigin": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "labelService": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "returnAddress": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "companyName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressLine1": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "addressLine2": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "city": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "postalCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20
                  },
                  "countryCode": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}$"
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 40
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 200,
                        "format": "email",
                        "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "addressLine1",
                  "city",
                  "postalCode",
                  "countryCode"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "tracking": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["lines", "organizationId"],
        "additionalProperties": false
      },
      "name": "purchase_orders_preview",
      "outputSchema": {
        "type": "object",
        "properties": {
          "preview": {
            "type": "object",
            "properties": {
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "baseSku": {
                      "type": "string",
                      "minLength": 1
                    },
                    "condition": {
                      "type": ["string", "null"]
                    },
                    "productId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "sku": {
                      "type": ["string", "null"]
                    },
                    "submittedName": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "baseSku",
                    "condition",
                    "productId",
                    "quantity",
                    "sku",
                    "submittedName"
                  ],
                  "additionalProperties": false
                }
              },
              "origin": {
                "type": "string",
                "enum": ["customer", "staff_unexpected"]
              },
              "poNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "registrationKind": {
                "type": "string",
                "enum": ["standard", "player_deposit"]
              },
              "supplierId": {
                "type": ["string", "null"]
              },
              "warehouseRef": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "lines",
              "origin",
              "poNumber",
              "registrationKind",
              "supplierId",
              "warehouseRef"
            ],
            "additionalProperties": false
          }
        },
        "required": ["preview"],
        "additionalProperties": false
      },
      "title": "Preview purchase order",
      "operation": "previewPurchaseOrder"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a customer's agreed rates",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "rates_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date",
            "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])))$"
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "currentRate": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "currency": {
                          "type": "string",
                          "pattern": "^[A-Z]{3}$"
                        },
                        "effectiveFrom": {
                          "type": "string",
                          "format": "date",
                          "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])))$"
                        },
                        "parameters": {
                          "type": "object",
                          "properties": {
                            "bundleQuantity": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            "includedDays": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "includedMinutes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "includedQuantity": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "incrementMinutes": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            "launchReservationCredit": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "measurement": {
                              "type": "string",
                              "enum": [
                                "daily_observed_volume",
                                "period_quantity"
                              ]
                            },
                            "minimumEligible": {
                              "type": "boolean"
                            },
                            "minimumMinutes": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            "overageRate": {
                              "type": "string",
                              "maxLength": 32,
                              "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                            },
                            "premiumPolicy": {
                              "type": "string",
                              "enum": ["additive_allowed", "highest_applicable"]
                            },
                            "rounding": {
                              "type": "string",
                              "enum": ["ceiling_per_item", "half_up_once"]
                            },
                            "sourceAdjustmentWindowDays": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "volumeBands": {
                              "readOnly": true,
                              "minItems": 1,
                              "maxItems": 20,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "fromQuantity": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "rate": {
                                    "type": "string",
                                    "maxLength": 32,
                                    "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                                  }
                                },
                                "required": ["fromQuantity", "rate"],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "rate": {
                          "type": "string",
                          "maxLength": 32,
                          "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                        }
                      },
                      "required": [
                        "currency",
                        "effectiveFrom",
                        "parameters",
                        "rate"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "customerDescription": {
                  "type": ["string", "null"]
                },
                "displayName": {
                  "type": "string"
                },
                "pricingBasis": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "at_cost",
                        "fixed_amount",
                        "grouped_hourly",
                        "landed_cost_plus",
                        "net_cost_gross_margin",
                        "per_unit",
                        "published_rate_discount",
                        "recurring_fixed",
                        "recurring_quantity",
                        "value_percentage"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantityUnit": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "box",
                        "card",
                        "case",
                        "cost_amount",
                        "cubic_foot_year",
                        "day",
                        "hour",
                        "month",
                        "order",
                        "pack",
                        "package",
                        "pallet",
                        "pick_line",
                        "position",
                        "program",
                        "shipment",
                        "sku",
                        "unit",
                        "value_amount"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "scheduledRates": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "effectiveFrom": {
                        "type": "string",
                        "format": "date",
                        "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])))$"
                      },
                      "parameters": {
                        "type": "object",
                        "properties": {
                          "bundleQuantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          },
                          "includedDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "includedMinutes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "includedQuantity": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "incrementMinutes": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          },
                          "launchReservationCredit": {
                            "type": "string",
                            "maxLength": 32,
                            "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "measurement": {
                            "type": "string",
                            "enum": ["daily_observed_volume", "period_quantity"]
                          },
                          "minimumEligible": {
                            "type": "boolean"
                          },
                          "minimumMinutes": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          },
                          "overageRate": {
                            "type": "string",
                            "maxLength": 32,
                            "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                          },
                          "premiumPolicy": {
                            "type": "string",
                            "enum": ["additive_allowed", "highest_applicable"]
                          },
                          "rounding": {
                            "type": "string",
                            "enum": ["ceiling_per_item", "half_up_once"]
                          },
                          "sourceAdjustmentWindowDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "volumeBands": {
                            "readOnly": true,
                            "minItems": 1,
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "fromQuantity": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "rate": {
                                  "type": "string",
                                  "maxLength": 32,
                                  "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                                }
                              },
                              "required": ["fromQuantity", "rate"],
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "rate": {
                        "type": "string",
                        "maxLength": 32,
                        "pattern": "^(0|[1-9]\\d*)(\\.\\d+)?$"
                      }
                    },
                    "required": [
                      "currency",
                      "effectiveFrom",
                      "parameters",
                      "rate"
                    ],
                    "additionalProperties": false
                  }
                },
                "serviceCode": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64,
                  "pattern": "^[a-z][a-z0-9_]*$"
                },
                "serviceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "status": {
                  "type": "string",
                  "enum": ["disabled", "enabled", "included"]
                }
              },
              "required": [
                "currentRate",
                "customerDescription",
                "displayName",
                "pricingBasis",
                "quantityUnit",
                "scheduledRates",
                "serviceCode",
                "serviceId",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": ["asOf", "organizationId", "services"],
        "additionalProperties": false
      },
      "title": "Get agreed rates",
      "operation": "getCustomerRateCard"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Create a recipient",
      "inputSchema": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "addressLine2": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "addressLine3": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "contactName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultIncoterm": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "CFR",
                  "CIF",
                  "CIP",
                  "CPT",
                  "DAP",
                  "DDP",
                  "DPU",
                  "EXW",
                  "FAS",
                  "FCA",
                  "FOB"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "importerOfRecord": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "legalName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "postalCode": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "taxIdentifier": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": ["organizationId", "submissionKey"],
        "additionalProperties": false
      },
      "name": "recipients_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": ["string", "null"]
              },
              "addressLine2": {
                "type": ["string", "null"]
              },
              "addressLine3": {
                "type": ["string", "null"]
              },
              "city": {
                "type": ["string", "null"]
              },
              "companyName": {
                "type": ["string", "null"]
              },
              "contactName": {
                "type": ["string", "null"]
              },
              "countryCode": {
                "type": ["string", "null"]
              },
              "defaultIncoterm": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "CFR",
                      "CIF",
                      "CIP",
                      "CPT",
                      "DAP",
                      "DDP",
                      "DPU",
                      "EXW",
                      "FAS",
                      "FCA",
                      "FOB"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "type": ["string", "null"]
              },
              "id": {
                "type": "string"
              },
              "importerOfRecord": {
                "type": ["string", "null"]
              },
              "legalName": {
                "type": ["string", "null"]
              },
              "phone": {
                "type": ["string", "null"]
              },
              "postalCode": {
                "type": ["string", "null"]
              },
              "region": {
                "type": ["string", "null"]
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "taxIdentifier": {
                "type": ["string", "null"]
              },
              "updatedAt": {
                "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))$"
              }
            },
            "required": [
              "addressLine1",
              "addressLine2",
              "addressLine3",
              "city",
              "companyName",
              "contactName",
              "countryCode",
              "defaultIncoterm",
              "email",
              "id",
              "importerOfRecord",
              "legalName",
              "phone",
              "postalCode",
              "region",
              "revision",
              "taxIdentifier",
              "updatedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "recipient"],
        "additionalProperties": false
      },
      "title": "Create recipient",
      "operation": "createRecipient"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a recipient",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "recipientId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId", "recipientId"],
        "additionalProperties": false
      },
      "name": "recipients_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "type": ["string", "null"]
          },
          "addressLine2": {
            "type": ["string", "null"]
          },
          "addressLine3": {
            "type": ["string", "null"]
          },
          "city": {
            "type": ["string", "null"]
          },
          "companyName": {
            "type": ["string", "null"]
          },
          "contactName": {
            "type": ["string", "null"]
          },
          "countryCode": {
            "type": ["string", "null"]
          },
          "defaultIncoterm": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "CFR",
                  "CIF",
                  "CIP",
                  "CPT",
                  "DAP",
                  "DDP",
                  "DPU",
                  "EXW",
                  "FAS",
                  "FCA",
                  "FOB"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "type": ["string", "null"]
          },
          "id": {
            "type": "string"
          },
          "importerOfRecord": {
            "type": ["string", "null"]
          },
          "legalName": {
            "type": ["string", "null"]
          },
          "phone": {
            "type": ["string", "null"]
          },
          "postalCode": {
            "type": ["string", "null"]
          },
          "region": {
            "type": ["string", "null"]
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "taxIdentifier": {
            "type": ["string", "null"]
          },
          "updatedAt": {
            "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))$"
          }
        },
        "required": [
          "addressLine1",
          "addressLine2",
          "addressLine3",
          "city",
          "companyName",
          "contactName",
          "countryCode",
          "defaultIncoterm",
          "email",
          "id",
          "importerOfRecord",
          "legalName",
          "phone",
          "postalCode",
          "region",
          "revision",
          "taxIdentifier",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "title": "Get recipient",
      "operation": "getRecipient"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List recipients",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "recipients_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "addressLine1": {
                  "type": ["string", "null"]
                },
                "addressLine2": {
                  "type": ["string", "null"]
                },
                "addressLine3": {
                  "type": ["string", "null"]
                },
                "city": {
                  "type": ["string", "null"]
                },
                "companyName": {
                  "type": ["string", "null"]
                },
                "contactName": {
                  "type": ["string", "null"]
                },
                "countryCode": {
                  "type": ["string", "null"]
                },
                "defaultIncoterm": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "CFR",
                        "CIF",
                        "CIP",
                        "CPT",
                        "DAP",
                        "DDP",
                        "DPU",
                        "EXW",
                        "FAS",
                        "FCA",
                        "FOB"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "type": ["string", "null"]
                },
                "id": {
                  "type": "string"
                },
                "importerOfRecord": {
                  "type": ["string", "null"]
                },
                "legalName": {
                  "type": ["string", "null"]
                },
                "phone": {
                  "type": ["string", "null"]
                },
                "postalCode": {
                  "type": ["string", "null"]
                },
                "region": {
                  "type": ["string", "null"]
                },
                "revision": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "taxIdentifier": {
                  "type": ["string", "null"]
                },
                "updatedAt": {
                  "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))$"
                }
              },
              "required": [
                "addressLine1",
                "addressLine2",
                "addressLine3",
                "city",
                "companyName",
                "contactName",
                "countryCode",
                "defaultIncoterm",
                "email",
                "id",
                "importerOfRecord",
                "legalName",
                "phone",
                "postalCode",
                "region",
                "revision",
                "taxIdentifier",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List recipients",
      "operation": "listRecipients"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Update a recipient",
      "inputSchema": {
        "type": "object",
        "properties": {
          "addressLine1": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "addressLine2": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "addressLine3": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "contactName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultIncoterm": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "CFR",
                  "CIF",
                  "CIP",
                  "CPT",
                  "DAP",
                  "DDP",
                  "DPU",
                  "EXW",
                  "FAS",
                  "FCA",
                  "FOB"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "importerOfRecord": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "legalName": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "postalCode": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "taxIdentifier": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedRevision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "recipientId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "organizationId",
          "recipientId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "recipients_update",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": ["string", "null"]
              },
              "addressLine2": {
                "type": ["string", "null"]
              },
              "addressLine3": {
                "type": ["string", "null"]
              },
              "city": {
                "type": ["string", "null"]
              },
              "companyName": {
                "type": ["string", "null"]
              },
              "contactName": {
                "type": ["string", "null"]
              },
              "countryCode": {
                "type": ["string", "null"]
              },
              "defaultIncoterm": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "CFR",
                      "CIF",
                      "CIP",
                      "CPT",
                      "DAP",
                      "DDP",
                      "DPU",
                      "EXW",
                      "FAS",
                      "FCA",
                      "FOB"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "type": ["string", "null"]
              },
              "id": {
                "type": "string"
              },
              "importerOfRecord": {
                "type": ["string", "null"]
              },
              "legalName": {
                "type": ["string", "null"]
              },
              "phone": {
                "type": ["string", "null"]
              },
              "postalCode": {
                "type": ["string", "null"]
              },
              "region": {
                "type": ["string", "null"]
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "taxIdentifier": {
                "type": ["string", "null"]
              },
              "updatedAt": {
                "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))$"
              }
            },
            "required": [
              "addressLine1",
              "addressLine2",
              "addressLine3",
              "city",
              "companyName",
              "contactName",
              "countryCode",
              "defaultIncoterm",
              "email",
              "id",
              "importerOfRecord",
              "legalName",
              "phone",
              "postalCode",
              "region",
              "revision",
              "taxIdentifier",
              "updatedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "recipient"],
        "additionalProperties": false
      },
      "title": "Update recipient",
      "operation": "updateRecipient"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get a Warehouse reconciliation run",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "runRef": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": ["organizationId", "runRef"],
        "additionalProperties": false
      },
      "name": "reconciliation_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "adapter": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "label": {
                "type": "string",
                "minLength": 1
              },
              "providerVerified": {
                "type": "boolean",
                "const": false
              }
            },
            "required": ["id", "label", "providerVerified"],
            "additionalProperties": false
          },
          "asOf": {
            "anyOf": [
              {
                "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))$"
              },
              {
                "type": "string",
                "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(?:Z))$"
              }
            ]
          },
          "counts": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "difference": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "physicalCount": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reason": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "scopeRef": {
                  "type": "string",
                  "minLength": 1
                },
                "status": {
                  "type": "string",
                  "enum": ["clean", "incomplete", "material_discrepancy"]
                },
                "tokenizedCount": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "difference",
                "physicalCount",
                "reason",
                "scopeRef",
                "status",
                "tokenizedCount",
                "unit"
              ],
              "additionalProperties": false
            }
          },
          "notificationStatus": {
            "type": "string",
            "enum": ["not_required", "pending", "sent", "unknown"]
          },
          "result": {
            "type": "string",
            "enum": [
              "complete",
              "material_discrepancy",
              "incomplete",
              "unknown"
            ]
          },
          "runRef": {
            "type": "string",
            "minLength": 1
          },
          "sourceRef": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "adapter",
          "asOf",
          "counts",
          "notificationStatus",
          "result",
          "runRef",
          "sourceRef"
        ],
        "additionalProperties": false
      },
      "title": "Get Warehouse reconciliation run",
      "operation": "getReconciliationRun"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get an accepted Warehouse report",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "reportId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": ["organizationId", "reportId"],
        "additionalProperties": false
      },
      "name": "reports_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "currentAcceptedRevision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "reportId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "revision": {
            "type": "object",
            "properties": {
              "acceptedAt": {
                "anyOf": [
                  {
                    "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))$"
                  },
                  {
                    "type": "string",
                    "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(?:Z))$"
                  }
                ]
              },
              "acknowledgementRef": {
                "type": "string",
                "minLength": 1
              },
              "expectedAcceptedRevision": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalAcceptedRevision": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "recordedAt": {
                "anyOf": [
                  {
                    "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))$"
                  },
                  {
                    "type": "string",
                    "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(?:Z))$"
                  }
                ]
              },
              "revision": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "acceptedAt",
              "acknowledgementRef",
              "expectedAcceptedRevision",
              "externalAcceptedRevision",
              "recordedAt",
              "revision"
            ],
            "additionalProperties": false
          },
          "source": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "opening"
                  },
                  "openingRef": {
                    "type": "string"
                  }
                },
                "required": ["kind", "openingRef"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "purchase_order"
                  },
                  "purchaseOrderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  }
                },
                "required": ["kind", "purchaseOrderId"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "return"
                  },
                  "returnId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  }
                },
                "required": ["kind", "returnId"],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "currentAcceptedRevision",
          "reportId",
          "revision",
          "source"
        ],
        "additionalProperties": false
      },
      "title": "Get Warehouse report",
      "operation": "getWarehouseReport"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Export physical returns as CSV",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "returns_export",
      "outputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          }
        },
        "required": ["content", "filename"],
        "additionalProperties": false
      },
      "title": "Export physical returns",
      "operation": "exportReturns"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Get physical return",
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "returnId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": ["organizationId", "returnId"],
        "additionalProperties": false
      },
      "name": "returns_get",
      "outputSchema": {
        "type": "object",
        "properties": {
          "arrivalKind": {
            "type": "string",
            "enum": ["return", "rts"],
            "description": "Physical return or return to sender (RTS); RTS is linked to an original shipment."
          },
          "arrivedAt": {
            "type": "string"
          },
          "arrivalOrigin": {
            "type": "string",
            "enum": ["staff_attested", "verified_provider"]
          },
          "id": {
            "type": "string"
          },
          "instructionRevision": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "originalOrderId": {
            "type": "string"
          },
          "originalShipmentId": {
            "type": ["string", "null"]
          },
          "providerReturnRef": {
            "type": ["string", "null"]
          },
          "instruction": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "acknowledgedAt": {
                        "type": ["string", "null"]
                      },
                      "choice": {
                        "type": "string",
                        "const": "restock"
                      },
                      "id": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "sourceLines": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "assessedCondition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "nm",
                                    "lp",
                                    "mp",
                                    "hp",
                                    "dmg",
                                    "no_damage_found"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "productBindingId": {
                              "type": "string"
                            },
                            "receivedQuantity": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "returnLineId": {
                              "type": "string"
                            },
                            "returnLineRevisionId": {
                              "type": "string"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "variantBindingId": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": [
                            "assessedCondition",
                            "productBindingId",
                            "receivedQuantity",
                            "returnLineId",
                            "returnLineRevisionId",
                            "revision",
                            "variantBindingId"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "acknowledgedAt",
                      "choice",
                      "id",
                      "revision",
                      "sourceLines"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "acknowledgedAt": {
                        "type": ["string", "null"]
                      },
                      "choice": {
                        "type": "string",
                        "const": "reship"
                      },
                      "id": {
                        "type": "string"
                      },
                      "reshipSnapshotId": {
                        "type": "string"
                      },
                      "resultOrderId": {
                        "type": ["string", "null"]
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "sourceLines": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "assessedCondition": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "nm",
                                    "lp",
                                    "mp",
                                    "hp",
                                    "dmg",
                                    "no_damage_found"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "productBindingId": {
                              "type": "string"
                            },
                            "receivedQuantity": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "returnLineId": {
                              "type": "string"
                            },
                            "returnLineRevisionId": {
                              "type": "string"
                            },
                            "revision": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "variantBindingId": {
                              "type": ["string", "null"]
                            }
                          },
                          "required": [
                            "assessedCondition",
                            "productBindingId",
                            "receivedQuantity",
                            "returnLineId",
                            "returnLineRevisionId",
                            "revision",
                            "variantBindingId"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "acknowledgedAt",
                      "choice",
                      "id",
                      "reshipSnapshotId",
                      "resultOrderId",
                      "revision",
                      "sourceLines"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "allocatedQuantity": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "assessedCondition": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": ["nm", "lp", "mp", "hp", "dmg", "no_damage_found"]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "productBindingId": {
                  "type": "string"
                },
                "receivedQuantity": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "returnLineId": {
                  "type": "string"
                },
                "returnLineRevisionId": {
                  "type": "string"
                },
                "revision": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "variantBindingId": {
                  "type": ["string", "null"]
                }
              },
              "required": [
                "allocatedQuantity",
                "assessedCondition",
                "productBindingId",
                "receivedQuantity",
                "returnLineId",
                "returnLineRevisionId",
                "revision",
                "variantBindingId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "arrivalKind",
          "arrivedAt",
          "arrivalOrigin",
          "id",
          "instructionRevision",
          "originalOrderId",
          "originalShipmentId",
          "providerReturnRef",
          "instruction",
          "lines"
        ],
        "additionalProperties": false
      },
      "title": "Get physical return",
      "operation": "getReturn"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "List physical returns",
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "limit": {
            "default": 50,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          }
        },
        "required": ["organizationId"],
        "additionalProperties": false
      },
      "name": "returns_list",
      "outputSchema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "arrivalKind": {
                  "type": "string",
                  "enum": ["return", "rts"],
                  "description": "Physical return or return to sender (RTS); RTS is linked to an original shipment."
                },
                "arrivedAt": {
                  "type": "string"
                },
                "arrivalOrigin": {
                  "type": "string",
                  "enum": ["staff_attested", "verified_provider"]
                },
                "id": {
                  "type": "string"
                },
                "instructionRevision": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "originalOrderId": {
                  "type": "string"
                },
                "originalShipmentId": {
                  "type": ["string", "null"]
                },
                "providerReturnRef": {
                  "type": ["string", "null"]
                }
              },
              "required": [
                "arrivalKind",
                "arrivedAt",
                "arrivalOrigin",
                "id",
                "instructionRevision",
                "originalOrderId",
                "originalShipmentId",
                "providerReturnRef"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "type": ["string", "null"]
          },
          "previousCursor": {
            "type": ["string", "null"]
          }
        },
        "required": ["items", "nextCursor", "previousCursor"],
        "additionalProperties": false,
        "x-vault-page": true
      },
      "title": "List physical returns",
      "operation": "listReturns"
    },
    {
      "annotations": {
        "readOnlyHint": false
      },
      "description": "Submit return instruction",
      "inputSchema": {
        "type": "object",
        "properties": {
          "expectedRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "instruction": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "choice": {
                    "type": "string",
                    "const": "restock"
                  }
                },
                "required": ["choice"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "choice": {
                    "type": "string",
                    "const": "reship"
                  },
                  "reshipSnapshotId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "required": ["choice", "reshipSnapshotId"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "choice": {
                    "type": "string",
                    "const": "reship"
                  },
                  "correctedRecipient": {
                    "type": "object",
                    "properties": {
                      "addressLine1": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "addressLine2": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "addressLine3": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "city": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "companyName": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contactName": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "countryCode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "defaultIncoterm": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "CFR",
                              "CIF",
                              "CIP",
                              "CPT",
                              "DAP",
                              "DDP",
                              "DPU",
                              "EXW",
                              "FAS",
                              "FCA",
                              "FOB"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "importerOfRecord": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "legalName": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "phone": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "postalCode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "region": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taxIdentifier": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": ["choice", "correctedRecipient"],
                "additionalProperties": false
              }
            ]
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "returnId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "submissionKey": {
            "type": "string",
            "minLength": 8,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "required": [
          "expectedRevision",
          "instruction",
          "organizationId",
          "returnId",
          "submissionKey"
        ],
        "additionalProperties": false
      },
      "name": "returns_submit_instruction",
      "outputSchema": {
        "type": "object",
        "properties": {
          "effects": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationId": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "const": "confirmed"
          },
          "instruction": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "revision": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": ["id", "revision"],
            "additionalProperties": false
          }
        },
        "required": ["effects", "operationId", "outcome", "instruction"],
        "additionalProperties": false
      },
      "title": "Submit return instruction",
      "operation": "submitReturnInstruction"
    },
    {
      "annotations": {
        "readOnlyHint": true
      },
      "description": "Compare customer-priced parcel shipping estimates for all products and quantities at the selected physical inventory source. Preview first; copy physicalSource.selected unchanged as fulfillmentSource. Source selections are opaque handoff bundles, not display labels. Insurance defaults to kind: none, the native no-additional-insurance choice; carrier-included baseline coverage is unaffected. An optional kind: native choice names an eligible provider and one insured value for the shipment's one parcel, with explicit amount and USD currency. Goods/customs declarations remain independent. Supported opt-in requires current account and shipment-update evidence for the insurer, collectibles, carrier, destination, values, signature and claims rules; schema fields alone do not enable coverage. Native full rates expose the premium separately as insuranceAmount, alongside shippingAmount, fulfillmentAmount and configured fees; totalAmount includes those amounts. Delivery confirmation defaults to none. Set deliveryConfirmation to signature or adult_signature for an eligible shipment; delivery and FedEx direct_signature are also admitted. Restricted and other V2-only modes are unavailable through this shared V1 order path. Non-default confirmation excludes Ground Saver, SurePost and Media Mail; omitted or none retains existing configured service behavior. The actual confirmationAmount is an included component of the shipping pricing basis, not an extra amount to add to totalAmount. Customer shipping pricing still applies once to the combined carrier cost or retail comparison. A non-default confirmation requires a current priced selection. Test confirmation is unavailable. A quote prices one parcel at the order's total weight, and only the warehouse's configured carrier accounts are offered. Current provider rejection is distinct from an unavailable lookup; no mode is silently substituted. Copy the returned selection, including deliveryConfirmation and insurance, unchanged as shippingQuote for ordinary orders or redemptions. Create revalidates the physical source, recipient, parcels, service, coverage and prices; changed facts require a fresh quote. Vault does not buy the label or insured coverage; creating the order writes the chosen insurance to the warehouse order as a coverage request, and order.current.insurance.label shows the coverage the warehouse's label reports, once it exists. A quote or creation receipt does not buy or prove insurance. Delivery timing is a carrier estimate when supplied. Import duties, taxes and later adjustments are not guaranteed. Quotes create no order, reservation, label, charge, shipment or price lock. A completed lookup with no eligible service returns quotes: []; incomplete configuration or provider failure is unavailable. Pallet freight retains its separate workflow.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "deliveryConfirmation": {
            "type": "string",
            "enum": [
              "none",
              "delivery",
              "signature",
              "adult_signature",
              "direct_signature"
            ]
          },
          "lines": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "declaredUnitValue": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    }
                  },
                  "required": ["amount"],
                  "additionalProperties": false
                },
                "productId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100000
                }
              },
              "required": ["productId", "quantity"],
              "additionalProperties": false
            }
          },
          "organizationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "recipient": {
            "type": "object",
            "properties": {
              "addressLine1": {
                "type": "string",
                "maxLength": 500
              },
              "addressLine2": {
                "type": "string",
                "maxLength": 500
              },
              "city": {
                "type": "string",
                "maxLength": 200
              },
              "company": {
                "type": "string",
                "maxLength": 200
              },
              "country": {
                "type": "string",
                "maxLength": 200
              },
              "email": {
                "type": "string",
                "maxLength": 200
              },
              "name": {
                "type": "string",
                "maxLength": 200
              },
              "phone": {
                "type": "string",
                "maxLength": 200
              },
              "postalCode": {
                "type": "string",
                "maxLength": 200
              },
              "region": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "addressLine1",
              "addressLine2",
              "city",
              "company",
              "country",
              "email",
              "name",
              "phone",
              "postalCode",
              "region"
            ],
            "additionalProperties": false
          },
          "fulfillmentSource": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "v1WarehouseId": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef",
                  "v1WarehouseId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "test"
                  },
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "mode",
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef"
                ],
                "additionalProperties": false
              }
            ]
          },
          "insurance": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "none"
                  }
                },
                "required": ["kind"],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "native"
                  },
                  "packages": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                        },
                        "currency": {
                          "type": "string",
                          "pattern": "^[A-Z]{3}$"
                        }
                      },
                      "required": ["amount", "currency"],
                      "additionalProperties": false
                    }
                  },
                  "provider": {
                    "type": "string",
                    "enum": ["carrier", "parcelguard", "shipsurance", "xcover"]
                  }
                },
                "required": ["kind", "packages", "provider"],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": ["lines", "organizationId", "recipient"],
        "additionalProperties": false
      },
      "name": "shipping_quotes_create",
      "outputSchema": {
        "type": "object",
        "properties": {
          "fulfillmentSource": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "v1WarehouseId": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef",
                  "v1WarehouseId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "test"
                  },
                  "configurationRevision": {
                    "type": "string",
                    "pattern": "^[1-9][0-9]*$"
                  },
                  "sourceSignature": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "physicalOriginEquivalenceRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "mode",
                  "configurationRevision",
                  "sourceSignature",
                  "physicalOriginEquivalenceRef"
                ],
                "additionalProperties": false
              }
            ]
          },
          "parcelCount": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "quotes": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "service": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "carrier": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    }
                  },
                  "required": ["name", "carrier"],
                  "additionalProperties": false
                },
                "delivery": {
                  "type": "object",
                  "properties": {
                    "days": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "date": {
                      "type": ["string", "null"]
                    }
                  },
                  "required": ["days", "date"],
                  "additionalProperties": false
                },
                "confirmationAmount": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    }
                  },
                  "required": ["amount", "currency"],
                  "additionalProperties": false,
                  "description": "Actual native confirmation fee included in the shipping pricing basis. Do not add it to totalAmount again."
                },
                "shippingAmount": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    }
                  },
                  "required": ["amount", "currency"],
                  "additionalProperties": false
                },
                "fulfillmentAmount": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    }
                  },
                  "required": ["amount", "currency"],
                  "additionalProperties": false
                },
                "insuranceAmount": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    }
                  },
                  "required": ["amount", "currency"],
                  "additionalProperties": false
                },
                "fees": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "amount": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "string",
                            "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[A-Z]{3}$"
                          }
                        },
                        "required": ["amount", "currency"],
                        "additionalProperties": false
                      }
                    },
                    "required": ["name", "amount"],
                    "additionalProperties": false
                  }
                },
                "totalAmount": {
                  "type": "object",
                  "properties": {
                    "amount": {
                      "type": "string",
                      "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    }
                  },
                  "required": ["amount", "currency"],
                  "additionalProperties": false
                },
                "selection": {
                  "type": "object",
                  "properties": {
                    "deliveryConfirmation": {
                      "type": "string",
                      "enum": [
                        "none",
                        "delivery",
                        "signature",
                        "adult_signature",
                        "direct_signature"
                      ]
                    },
                    "insurance": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "none"
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "native"
                            },
                            "packages": {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "amount": {
                                    "type": "string",
                                    "pattern": "^(0|[1-9]\\d{0,8})(\\.\\d{1,4})?$"
                                  },
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  }
                                },
                                "required": ["amount", "currency"],
                                "additionalProperties": false
                              }
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "carrier",
                                "parcelguard",
                                "shipsurance",
                                "xcover"
                              ]
                            }
                          },
                          "required": ["kind", "packages", "provider"],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "review": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{64}$"
                    },
                    "requestedShippingService": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "requestedShippingServiceReview": {
                      "type": "string",
                      "pattern": "^[0-9a-f]{64}$"
                    }
                  },
                  "required": [
                    "review",
                    "requestedShippingService",
                    "requestedShippingServiceReview"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "service",
                "delivery",
                "confirmationAmount",
                "shippingAmount",
                "fulfillmentAmount",
                "insuranceAmount",
                "fees",
                "totalAmount",
                "selection"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": ["fulfillmentSource", "parcelCount", "quotes"],
        "additionalProperties": false
      },
      "title": "Quote parcel shipping",
      "operation": "createShippingQuote"
    }
  ]
}
