---
updatedAt: 2026-10-17T06:35:57.000Z
agentTools:
  projectIndex: https://developer.vinoshipper.com/llms.txt
---

# Update an Order

This can also be used to create an order with an externally generated order number.

An order can be updated until it has been sent to fulfillment or shipped. The order does not need to already exist within Vinoshipper. If it is more convenient to use the same API for the original order submission as well as updates, you can use the Update Order API to create orders. The primary difference is that for the Update Order API, you must provide an order number, whereas the Create Order API will generate an order number for you if not provided.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Vinoshipper API Docs",
    "version": "3.0",
    "x-logo": {
      "url": "/static/img/brand/vinoshipper-logo.svg"
    }
  },
  "servers": [
    {
      "url": "https://vinoshipper.com"
    }
  ],
  "tags": [
    {
      "name": "Order",
      "description": "Post-purchase order operations"
    },
    {
      "name": "Order",
      "description": "Pre-purchase order operations"
    }
  ],
  "paths": {
    "/api/v3/p/orders/{orderNumber}": {
      "put": {
        "tags": [
          "Order"
        ],
        "summary": "Update an Order",
        "description": "This can also be used to create an order with an externally generated order number.",
        "operationId": "updateOrder",
        "parameters": [
          {
            "name": "orderNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrUpdateOrder"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "description": "Request has failed validation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed",
            "content": {}
          },
          "403": {
            "description": "Insufficient permission",
            "content": {}
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "BasicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "required": [
          "code",
          "description"
        ],
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "shortDescription": {
            "type": "string"
          }
        }
      },
      "ErrorDetails": {
        "required": [
          "status",
          "type"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "type": "string",
            "enum": [
              "VALIDATION",
              "COMPLIANCE",
              "PAYMENT_FAILURE",
              "SERVER_ERROR",
              "ACCESS_DENIED",
              "CONFLICT"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "ErrorResponse": {
        "required": [
          "error"
        ],
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetails"
          }
        }
      },
      "AccessPoint": {
        "required": [
          "businessName",
          "city",
          "country",
          "lat",
          "lng",
          "locationId",
          "postalCode",
          "stateCode",
          "street1"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "locationId": {
            "type": "string",
            "description": "UPS Location ID"
          },
          "lat": {
            "type": "number",
            "readOnly": true
          },
          "lng": {
            "type": "number",
            "readOnly": true
          },
          "imageUrl": {
            "type": "string",
            "description": "A full URL to an image associated with the Access Point",
            "nullable": true,
            "readOnly": true
          },
          "hours": {
            "type": "string",
            "description": "Text describing open hours",
            "nullable": true,
            "readOnly": true
          },
          "note": {
            "type": "string",
            "description": "Optional note from access point",
            "nullable": true,
            "readOnly": true
          },
          "businessName": {
            "type": "string",
            "readOnly": true
          },
          "street1": {
            "type": "string",
            "readOnly": true
          },
          "street2": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "city": {
            "type": "string",
            "readOnly": true
          },
          "postalCode": {
            "type": "string",
            "readOnly": true
          },
          "stateCode": {
            "type": "string",
            "readOnly": true
          },
          "country": {
            "type": "string",
            "description": "Two letter country code",
            "readOnly": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "description": "UPS access point",
        "nullable": true
      },
      "Address": {
        "required": [
          "city",
          "country",
          "fullName",
          "poBox",
          "postalCode",
          "stateCode",
          "street1",
          "suspectedPOBox",
          "verifiedNotPOBox"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "salutation": {
            "type": "string",
            "description": "Formal greeting or title of the customer"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "businessName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "description": "Use firstName and lastName instead.",
            "nullable": true,
            "deprecated": true
          },
          "street1": {
            "type": "string"
          },
          "street2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string",
            "description": "ZIP Code"
          },
          "stateCode": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "description": "Two letter country code",
            "default": "US"
          },
          "phoneNumber": {
            "type": "string",
            "description": "Use phone instead.",
            "nullable": true,
            "deprecated": true
          },
          "phone": {
            "$ref": "#/components/schemas/InternationalPhoneNumber"
          },
          "accessPoint": {
            "$ref": "#/components/schemas/AccessPoint"
          },
          "description": {
            "type": "string",
            "description": "A description for the address, e.g. Home, Work",
            "nullable": true
          },
          "suspectedPOBox": {
            "type": "boolean",
            "description": "True if the address is suspected of being a PO Box",
            "readOnly": true
          },
          "poBox": {
            "type": "boolean",
            "description": "True if this address is confirmed as a PO Box",
            "readOnly": true
          },
          "verifiedNotPOBox": {
            "type": "boolean",
            "description": "True if someone has confirmed this address is not a PO Box. Club processing skips its PO Box check for such an address even when the text still reads like one.",
            "readOnly": true
          },
          "linkedAddress": {
            "$ref": "#/components/schemas/LinkedAddress"
          }
        },
        "description": "The address of the location where the sale is made",
        "nullable": true
      },
      "InternationalPhoneNumber": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string"
          },
          "country": {
            "type": "integer",
            "format": "int32"
          },
          "extension": {
            "type": "string"
          }
        },
        "nullable": true
      },
      "LinkedAddress": {
        "required": [
          "city",
          "country",
          "fullName",
          "postalCode",
          "stateCode",
          "street1"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "salutation": {
            "type": "string",
            "description": "Formal greeting or title of the customer"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "businessName": {
            "type": "string",
            "nullable": true
          },
          "fullName": {
            "type": "string",
            "description": "Use firstName and lastName instead.",
            "nullable": true,
            "deprecated": true
          },
          "street1": {
            "type": "string"
          },
          "street2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string",
            "description": "ZIP Code"
          },
          "stateCode": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "description": "Two letter country code",
            "default": "US"
          },
          "phoneNumber": {
            "type": "string",
            "description": "Use phone instead.",
            "nullable": true,
            "deprecated": true
          },
          "phone": {
            "$ref": "#/components/schemas/InternationalPhoneNumber"
          },
          "description": {
            "type": "string",
            "description": "A description for the address, e.g. Home, Work",
            "nullable": true
          },
          "accessPoint": {
            "$ref": "#/components/schemas/AccessPoint"
          }
        }
      },
      "OrderInvoiceView": {
        "required": [
          "paid"
        ],
        "type": "object",
        "properties": {
          "terms": {
            "type": "string",
            "description": "Payment terms code (DUE_ON_RECEIPT, NET_15, NET_30)"
          },
          "termsLabel": {
            "type": "string",
            "description": "Human-readable payment terms label"
          },
          "dueDate": {
            "type": "string",
            "description": "Payment due date, null for DUE_ON_RECEIPT or no terms",
            "format": "date"
          },
          "paidAt": {
            "type": "string",
            "description": "When the invoice was marked as paid, null if unpaid",
            "format": "date"
          },
          "paid": {
            "type": "boolean",
            "description": "Whether the invoice has been paid"
          },
          "paymentMethod": {
            "type": "string",
            "description": "How the invoice was paid (SalePaymentMethod enum name, e.g. CHECK), null until marked paid"
          },
          "paymentMethodDisplayName": {
            "type": "string",
            "description": "Display label for paymentMethod (e.g. Check)"
          }
        },
        "description": "Invoice details for a wholesale order",
        "nullable": true
      },
      "ProductDiscount": {
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Product discount only allow PERCENT or DOLLAR",
            "enum": [
              "PERCENT",
              "DOLLAR",
              "FLAT_RATE",
              "FREE",
              "DOLLAR_PER_UNIT"
            ]
          },
          "value": {
            "type": "number",
            "description": "The value of the percent or dollar discount"
          },
          "description": {
            "type": "string",
            "description": "The display name of the discount"
          },
          "appliedValue": {
            "type": "number",
            "description": "The dollar value after applying to the order"
          }
        },
        "description": "The discount applied to the product pricing",
        "nullable": true
      },
      "ShippingDiscount": {
        "required": [
          "perPackage",
          "type",
          "value"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Shipping discount allow all types of discount",
            "enum": [
              "PERCENT",
              "DOLLAR",
              "FLAT_RATE",
              "FREE",
              "DOLLAR_PER_UNIT"
            ]
          },
          "value": {
            "type": "number",
            "description": "The value of the percent/dollar discount or the flat rate"
          },
          "perPackage": {
            "type": "boolean",
            "description": "Whether the discount is applied per package or per order. Only applicable to dollar or flat rate discounts"
          },
          "shippingCodes": {
            "uniqueItems": true,
            "type": "array",
            "description": "The shipping class codes where the shipping discount can be applied",
            "items": {
              "type": "string",
              "description": "The shipping class codes where the shipping discount can be applied"
            }
          }
        },
        "description": "The discount applied to this shipping rate",
        "nullable": true
      },
      "SpecialInstructions": {
        "type": "object",
        "properties": {
          "producerNote": {
            "maxLength": 1024,
            "type": "string",
            "description": "A note for the producer's internal use, not displayed to customers.",
            "nullable": true
          },
          "giftNote": {
            "type": "string",
            "description": "A customer provided gift note, appears on receipt and packing slip.",
            "nullable": true
          },
          "shipDate": {
            "pattern": "YYYY-MM-dd",
            "type": "string",
            "description": "The date the shipment should be held until.",
            "format": "date",
            "nullable": true
          }
        }
      },
      "AgeVerificationDetail": {
        "required": [
          "verified"
        ],
        "type": "object",
        "properties": {
          "verified": {
            "type": "boolean"
          },
          "idScanUrl": {
            "type": "string"
          }
        }
      },
      "BoxDimensions": {
        "required": [
          "depthInches",
          "heightInches",
          "widthInches"
        ],
        "type": "object",
        "properties": {
          "widthInches": {
            "type": "number",
            "description": "The box width in inches"
          },
          "heightInches": {
            "type": "number",
            "description": "The box height in inches"
          },
          "depthInches": {
            "type": "number",
            "description": "The box depth in inches"
          }
        }
      },
      "BoxWeight": {
        "required": [
          "lbs"
        ],
        "type": "object",
        "properties": {
          "lbs": {
            "type": "number",
            "description": "The box weight in pounds"
          }
        }
      },
      "CustomerAddress": {
        "required": [
          "city",
          "postalCode",
          "stateCode",
          "street1"
        ],
        "type": "object",
        "properties": {
          "street1": {
            "type": "string"
          },
          "street2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "postalCode": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          }
        }
      },
      "CustomerOrderNotificationPreferences": {
        "type": "object",
        "properties": {
          "failedDeliveryEnabled": {
            "type": "boolean",
            "description": "Controls failed delivery attempt notifications (UPS delivery failures). Includes first, second, and final delivery failure notifications.\nUse true to always send these emails or false to never send them. Null/omitted fields follow the global disableCustomerNotifications setting.\nNote: Updates replace ALL notification preferences - omitted fields are removed. You must include all preferences you want to keep."
          },
          "accessPointEnabled": {
            "type": "boolean",
            "description": "Controls UPS Access Point (AP) delivery notifications. Includes arrived at AP, unable to deliver to AP, and AP pickup required notifications.\nUse true to always send these emails or false to never send them. Null/omitted fields follow the global disableCustomerNotifications setting.\nNote: Updates replace ALL notification preferences - omitted fields are removed. You must include all preferences you want to keep."
          }
        },
        "description": "Granular email notification preferences that override the global disableCustomerNotifications setting. Allows independent control of specific notification types."
      },
      "DateOfBirth": {
        "required": [
          "day",
          "month",
          "year"
        ],
        "type": "object",
        "properties": {
          "day": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ExtraFeeDetail": {
        "required": [
          "amount",
          "label"
        ],
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "description": {
            "type": "string"
          }
        },
        "description": "Extra fee details that add up to the extra fee total. "
      },
      "IdAndName": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        },
        "description": "The store associated with the order"
      },
      "MultiPack": {
        "required": [
          "discount",
          "price",
          "productId",
          "quantity",
          "sku",
          "upc"
        ],
        "type": "object",
        "properties": {
          "productId": {
            "type": "integer",
            "format": "int32"
          },
          "productName": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "upc": {
            "type": "string"
          },
          "productTaxonomy": {
            "$ref": "#/components/schemas/ProductTaxonomyView"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "price": {
            "type": "number"
          },
          "discount": {
            "type": "number"
          }
        }
      },
      "Order": {
        "required": [
          "ageVerification",
          "customer",
          "extraFee",
          "extraFeesAdjusted",
          "extraFeesTotal",
          "guestCheckout",
          "isCompliant",
          "orderNumber",
          "orderStatus",
          "packaging",
          "platformCharges",
          "productDiscount",
          "shipping",
          "shippingDiscount",
          "specialInstructions",
          "status",
          "taxes",
          "taxesAdjusted",
          "taxesTotal",
          "tipAmount",
          "total",
          "vsOrderNumber"
        ],
        "type": "object",
        "properties": {
          "orderNumber": {
            "type": "string",
            "description": "The external order number. For API orders this is your externally supplied number; otherwise it is Vinoshipper's order number."
          },
          "vsOrderNumber": {
            "type": "string",
            "description": "Vinoshipper's internal order number. Changes when the order is modified (e.g. 12345A)."
          },
          "cartType": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "SUCCESS",
              "AGE_VERIFICATION_FAILED",
              "AGE_VERIFICATION_LOCKED",
              "DELETED",
              "PROBLEM",
              "PAYMENT_AUTHORIZED",
              "PAYMENT_CAPTURE_FAILED",
              "PENDING_PAYMENT"
            ]
          },
          "orderStatus": {
            "type": "string",
            "enum": [
              "OPEN",
              "LABELS_GENERATED",
              "SENT_TO_FULFILLMENT",
              "SHIPPED",
              "RETURNED",
              "DELIVERED",
              "PICKED_UP",
              "CANCELLED",
              "UNPAID",
              "PROBLEM",
              "NEW_MEMBER"
            ]
          },
          "customer": {
            "$ref": "#/components/schemas/OrderCustomer"
          },
          "guestCheckout": {
            "type": "boolean",
            "description": "True when the order was placed through guest checkout for an anonymous buyer rather than a customer"
          },
          "shipToAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "productDiscount": {
            "type": "number"
          },
          "shippingDiscount": {
            "type": "number"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderLine"
            }
          },
          "packs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MultiPack"
            }
          },
          "shipping": {
            "$ref": "#/components/schemas/ShippingDetail"
          },
          "packaging": {
            "type": "number",
            "description": "Packaging fee charged to customer"
          },
          "extraFee": {
            "type": "number",
            "description": "Use extraFeesTotal instead.",
            "deprecated": true
          },
          "extraFeeDetails": {
            "type": "array",
            "description": "Use extraFees instead",
            "deprecated": true,
            "items": {
              "$ref": "#/components/schemas/ExtraFeeDetail"
            }
          },
          "extraFees": {
            "type": "array",
            "description": "Extra fee details that add up to the extra fee total. ",
            "items": {
              "$ref": "#/components/schemas/ExtraFeeDetail"
            }
          },
          "extraFeesTotal": {
            "type": "number",
            "description": "Extra fees total"
          },
          "extraFeesAdjusted": {
            "type": "number",
            "description": "Difference between the other fees collected from customer and the Vinoshipper calculated other fees amount owed"
          },
          "taxesTotal": {
            "type": "number",
            "description": "Total of taxes on value of products and shipping"
          },
          "taxesAdjusted": {
            "type": "number",
            "description": "Difference between the taxes collected from customer and the Vinoshipper calculated tax amount owed"
          },
          "taxes": {
            "$ref": "#/components/schemas/TaxDetails"
          },
          "tipAmount": {
            "type": "number",
            "description": "Total tip amount"
          },
          "total": {
            "type": "number"
          },
          "specialInstructions": {
            "$ref": "#/components/schemas/SpecialInstructions"
          },
          "holds": {
            "type": "array",
            "description": "The order's active holds: reasons it should not ship yet. Empty when it has none.",
            "items": {
              "$ref": "#/components/schemas/OrderHoldView"
            }
          },
          "isCompliant": {
            "type": "boolean"
          },
          "purchasedAt": {
            "type": "string",
            "format": "date-time"
          },
          "canceledAt": {
            "type": "string",
            "format": "date-time"
          },
          "shippedAt": {
            "type": "string",
            "description": "\n        For carrier orders this is the time Vinoshipper received a scan notification from the\n        carrier. For pickup and local delivery orders it is the time the order was marked picked\n        up or delivered. If that date is later edited within the same calendar month, this is\n        updated to match deliveredAt. Edits into a different calendar month leave this value\n        unchanged.\n    ",
            "format": "date-time"
          },
          "deliveredAt": {
            "type": "string",
            "description": "\n        For carrier shipments this is the time we received notification from the carrier that the\n        order was successfully delivered. For other order types it is the pickup or delivery date,\n        which the producer can edit after the fact.\n    ",
            "format": "date-time"
          },
          "metaFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "orderProblems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Problem"
            }
          },
          "ageVerification": {
            "$ref": "#/components/schemas/AgeVerificationDetail"
          },
          "platformCharges": {
            "$ref": "#/components/schemas/PlatformCharges"
          },
          "cancelReason": {
            "type": "string"
          },
          "fulfillmentAccount": {
            "type": "string",
            "description": "The fulfillment account or route name to use when the producer allows multiple external fulfillment options. Most producers will not use this field."
          },
          "store": {
            "$ref": "#/components/schemas/IdAndName"
          },
          "customerNotificationPreferences": {
            "$ref": "#/components/schemas/CustomerOrderNotificationPreferences"
          },
          "invoice": {
            "$ref": "#/components/schemas/OrderInvoiceView"
          },
          "purchaseOrder": {
            "type": "string",
            "description": "The wholesale purchase order"
          },
          "paymentMethod": {
            "type": "string",
            "description": "How the order was paid. Empty until a wholesale invoice is marked as paid; otherwise auto-derived from the payment processor."
          },
          "paymentMethodDisplayName": {
            "type": "string",
            "description": "Display label for paymentMethod"
          },
          "saleLocation": {
            "$ref": "#/components/schemas/SaleLocationView"
          }
        }
      },
      "OrderCustomer": {
        "required": [
          "fullName",
          "wholesale"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/CustomerAddress"
          },
          "dateOfBirth": {
            "$ref": "#/components/schemas/DateOfBirth"
          },
          "wholesale": {
            "type": "boolean",
            "readOnly": true
          },
          "wholesaleType": {
            "type": "string",
            "readOnly": true,
            "enum": [
              "DISTRIBUTOR",
              "RETAILER",
              "RESTAURANT",
              "OTHER"
            ]
          },
          "company": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "fullName": {
            "type": "string"
          },
          "customerSince": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "OrderHoldActorView": {
        "required": [
          "role"
        ],
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "description": "The kind of user who placed a hold",
            "enum": [
              "PRODUCER",
              "ADMIN",
              "BUYER",
              "SHIPPER",
              "SYSTEM"
            ]
          },
          "userId": {
            "type": "integer",
            "description": "Vinoshipper user id of the person who placed the hold. Null for automatic holds and guest buyers.",
            "format": "int32",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The person who placed the hold: the buyer's name on the order for a buyer, otherwise the user's login. Null for automatic holds.",
            "nullable": true
          }
        },
        "description": "Who placed a hold",
        "nullable": true
      },
      "OrderHoldView": {
        "required": [
          "blocksExport",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A kind of hold. An order has at most one hold of each type. More types will be added: a client should accept a value it doesn't know.",
            "enum": [
              "HOLD_UNTIL",
              "BUYER_REQUESTED",
              "WEATHER"
            ]
          },
          "expiresOn": {
            "type": "string",
            "description": "The hold lifts at the start of this date in the producer's timezone. Null for a hold that stays until it is removed.",
            "format": "date",
            "nullable": true
          },
          "blocksExport": {
            "type": "boolean",
            "description": "Whether the hold keeps the order from being sent to a fulfillment center"
          },
          "placedBy": {
            "$ref": "#/components/schemas/OrderHoldActorView"
          },
          "placedAt": {
            "type": "string",
            "description": "When the hold was placed. Null for holds placed before this was recorded.",
            "format": "date-time",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Note from the producer or admin who placed the hold",
            "nullable": true
          }
        },
        "description": "A reason the order should not ship yet"
      },
      "OrderLine": {
        "required": [
          "alcoholPercentage",
          "category",
          "discount",
          "price",
          "productId",
          "quantity",
          "sku",
          "taxes",
          "upc"
        ],
        "type": "object",
        "properties": {
          "productId": {
            "type": "integer",
            "format": "int32"
          },
          "productName": {
            "type": "string"
          },
          "productVintage": {
            "type": "string"
          },
          "sku": {
            "type": "string"
          },
          "upc": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "productTaxonomy": {
            "$ref": "#/components/schemas/ProductTaxonomyView"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          },
          "price": {
            "type": "number"
          },
          "discount": {
            "type": "number"
          },
          "alcoholPercentage": {
            "type": "number"
          },
          "packProductId": {
            "type": "integer",
            "format": "int32"
          },
          "taxes": {
            "$ref": "#/components/schemas/Taxes"
          },
          "cogs": {
            "type": "number",
            "description": "Cost of goods sold per unit, snapshotted at order time with fallback to historical average",
            "nullable": true
          },
          "grossCogs": {
            "type": "number",
            "description": "Gross COGS (cogs × quantity)",
            "nullable": true
          }
        }
      },
      "Package": {
        "required": [
          "box"
        ],
        "type": "object",
        "properties": {
          "carrier": {
            "type": "string",
            "description": "The carrier that was actually used to ship the package or null if unknown",
            "enum": [
              "UPS",
              "FEDEX",
              "GLS",
              "SELF"
            ]
          },
          "trackingNumber": {
            "type": "string"
          },
          "box": {
            "$ref": "#/components/schemas/ShipmentBox"
          }
        }
      },
      "PlatformCharges": {
        "required": [
          "amountDue",
          "creditCardFee",
          "fundsReceived",
          "pickPackFee",
          "shipping",
          "stateFees",
          "taxExcise",
          "taxSales",
          "vinoshipperFee"
        ],
        "type": "object",
        "properties": {
          "fundsReceived": {
            "type": "number"
          },
          "creditCardFee": {
            "type": "number"
          },
          "pickPackFee": {
            "type": "number"
          },
          "vinoshipperFee": {
            "type": "number"
          },
          "shipping": {
            "type": "number"
          },
          "taxSales": {
            "type": "number"
          },
          "taxExcise": {
            "type": "number"
          },
          "stateFees": {
            "type": "number"
          },
          "amountDue": {
            "type": "number"
          }
        }
      },
      "Problem": {
        "required": [
          "code",
          "description",
          "resolvableByShippingClass",
          "type"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "resolvableByShippingClass": {
            "type": "boolean",
            "description": "True if another shipping class, such as local delivery, would clear this problem. It still blocks the order until that choice is made."
          }
        }
      },
      "ProductTaxonomyView": {
        "required": [
          "displayName",
          "externalId",
          "id",
          "sortOrder"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "externalId": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "SaleLocationView": {
        "required": [
          "address",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          }
        },
        "description": "The location where the sale was made",
        "nullable": true
      },
      "ShipmentBox": {
        "required": [
          "containsAlcohol",
          "weight"
        ],
        "type": "object",
        "properties": {
          "weight": {
            "$ref": "#/components/schemas/BoxWeight"
          },
          "dimensions": {
            "$ref": "#/components/schemas/BoxDimensions"
          },
          "containsAlcohol": {
            "type": "boolean"
          }
        }
      },
      "Shipper": {
        "required": [
          "id",
          "isFulfillmentCenter",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "isFulfillmentCenter": {
            "type": "boolean",
            "description": "If true, the shipper is a fulfillment center and you cannot use the schedule shipment api to create shipping labels."
          }
        }
      },
      "ShippingDetail": {
        "required": [
          "carrier",
          "price",
          "rateCode",
          "shipper"
        ],
        "type": "object",
        "properties": {
          "carrier": {
            "type": "string",
            "enum": [
              "UPS",
              "FEDEX",
              "GLS",
              "SELF"
            ]
          },
          "rateCode": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "shipper": {
            "$ref": "#/components/schemas/Shipper"
          },
          "rateDescription": {
            "type": "string"
          },
          "packages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Package"
            }
          },
          "taxes": {
            "$ref": "#/components/schemas/Taxes"
          }
        }
      },
      "TaxDetails": {
        "required": [
          "cityTaxRate",
          "cityTaxes",
          "countyTaxRate",
          "countyTaxes",
          "customStateTaxes",
          "otherTaxRate",
          "otherTaxes",
          "stateTaxRate",
          "stateTaxes"
        ],
        "type": "object",
        "properties": {
          "county": {
            "type": "string"
          },
          "countyTaxRate": {
            "type": "number"
          },
          "countyReportingCode": {
            "type": "string"
          },
          "countyTaxes": {
            "type": "number"
          },
          "city": {
            "type": "string"
          },
          "cityTaxRate": {
            "type": "number"
          },
          "cityReportingCode": {
            "type": "string"
          },
          "cityTaxes": {
            "type": "number"
          },
          "state": {
            "type": "string"
          },
          "stateTaxRate": {
            "type": "number"
          },
          "stateTaxes": {
            "type": "number"
          },
          "otherTaxRate": {
            "type": "number"
          },
          "otherTaxes": {
            "type": "number"
          },
          "customStateTaxes": {
            "type": "number"
          }
        },
        "description": "The summary of taxes charged"
      },
      "Taxes": {
        "required": [
          "taxRate",
          "taxableValue",
          "taxes"
        ],
        "type": "object",
        "properties": {
          "taxRate": {
            "type": "number"
          },
          "taxableValue": {
            "type": "number"
          },
          "taxes": {
            "type": "number"
          }
        }
      },
      "CreateOrUpdateOrder": {
        "required": [
          "disableCustomerNotifications",
          "fees",
          "isPaid",
          "paid",
          "productIdType",
          "products",
          "shippingRate",
          "taxes",
          "tipAmount"
        ],
        "type": "object",
        "properties": {
          "orderNumber": {
            "type": "string",
            "description": "Optional order number to use instead of generating one"
          },
          "sourceUrl": {
            "type": "string",
            "description": "Optional link to the order in the source system"
          },
          "customer": {
            "$ref": "#/components/schemas/OrderCustomer"
          },
          "shipToAddress": {
            "$ref": "#/components/schemas/OrderShippingAddressForm"
          },
          "productIdType": {
            "type": "string",
            "description": "The type of `productId` used in the request to identify orders in our system",
            "enum": [
              "SKU",
              "VS_ID"
            ]
          },
          "products": {
            "type": "array",
            "description": "A list of products that will go on the order",
            "items": {
              "$ref": "#/components/schemas/ProductQty"
            }
          },
          "shippingRate": {
            "$ref": "#/components/schemas/SelectedShippingRate"
          },
          "taxes": {
            "type": "number",
            "description": "When collecting money directly from the customer, you may collect a different tax amount than Vinoshipper calculates. If the custom tax amount is less than Vinoshipper calculates, the producer will be charged the difference. If the custom tax amount is greater than Vinoshipper calculates, the producer will be responsible for refunding the difference to the customer."
          },
          "fees": {
            "type": "number",
            "description": "Vinoshipper calculates additional fees, such as CO Retail Delivery fees and CA container deposit fees.If your system collects these fees they should be passed here so that Vinoshipper does not try to collect those fees from the producer. The value of this field will be compared to the total extra fees that Vinoshipper calculated and if you under charged fees they will collected from you during payout."
          },
          "tipAmount": {
            "type": "number",
            "description": "Amount of tip added to the order"
          },
          "discount": {
            "$ref": "#/components/schemas/OrderDiscount"
          },
          "metaFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "A list of key value pairs to attach as metadata to this order."
            },
            "description": "A list of key value pairs to attach as metadata to this order."
          },
          "specialInstructions": {
            "$ref": "#/components/schemas/SpecialInstructions"
          },
          "disableCustomerNotifications": {
            "type": "boolean",
            "description": "Disable all customer communications about this order. This includes things like the order confirmation email as well as order shipping status notifications."
          },
          "customerNotificationPreferences": {
            "$ref": "#/components/schemas/CustomerOrderNotificationPreferences"
          },
          "paid": {
            "type": "boolean",
            "description": "Complete this order and mark it as paid. This money will be collected from the producer."
          },
          "storeId": {
            "type": "integer",
            "description": "Store id for the order (default will be used if null)",
            "format": "int32"
          },
          "shipperId": {
            "type": "integer",
            "description": "Shipper id to use for this order (default will be used if null)",
            "format": "int32"
          },
          "fulfillmentAccount": {
            "maxLength": 255,
            "minLength": 0,
            "type": "string",
            "description": "The fulfillment account or route name to use when the producer allows multiple external fulfillment options. Most producers will not use this field."
          },
          "saleLocationId": {
            "type": "integer",
            "description": "Sale location id to indicate where the sale was made (default will be used if null)",
            "format": "int32"
          },
          "soldBy": {
            "$ref": "#/components/schemas/TeamMemberLookup"
          },
          "guestCheckout": {
            "type": "boolean",
            "description": "Check out as a guest: place the order for an anonymous buyer instead of a customer, as a counter sale does. A guest order must use the pickup shipping rate, is not attached to or recorded as a customer, and is marked as picked up once it is paid. Any `customer` details sent with a guest order are ignored. An unpaid guest order can be updated to a customer order by sending `guestCheckout: false` with the `customer`; a customer order cannot be switched to guest checkout."
          },
          "isPaid": {
            "type": "boolean",
            "description": "This field is deprecated, please use the paid field (without \"is\" prefix)",
            "deprecated": true
          }
        }
      },
      "OrderDiscount": {
        "type": "object",
        "properties": {
          "productDiscount": {
            "$ref": "#/components/schemas/ProductDiscount"
          },
          "shippingDiscount": {
            "$ref": "#/components/schemas/ShippingDiscount"
          }
        }
      },
      "OrderShippingAddressForm": {
        "required": [
          "city",
          "country",
          "postalCode",
          "stateCode",
          "street1"
        ],
        "type": "object",
        "properties": {
          "street1": {
            "type": "string"
          },
          "street2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "stateCode": {
            "type": "string"
          },
          "postalCode": {
            "type": "string",
            "description": "ZIP Code"
          },
          "country": {
            "type": "string",
            "description": "Two letter country code",
            "default": "US"
          },
          "salutation": {
            "type": "string",
            "description": "Formal greeting or title of the customer"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "businessName": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "$ref": "#/components/schemas/InternationalPhoneNumber"
          },
          "upsAccessPointId": {
            "type": "string"
          }
        },
        "description": "Where the order will be shipped to"
      },
      "ProductQty": {
        "title": "Specifies a product that is added to an order",
        "required": [
          "productId",
          "quantity"
        ],
        "type": "object",
        "properties": {
          "productId": {
            "type": "string",
            "description": "The product identifier"
          },
          "quantity": {
            "minimum": 0,
            "type": "integer",
            "description": "How many of this product to add. Zero omits the product from the order. An order request must contain at least one product with a quantity greater than zero.",
            "format": "int32"
          },
          "price": {
            "minimum": 0,
            "exclusiveMinimum": false,
            "type": "number",
            "description": "\n    An optional price override that will be used instead of the product's actual price.\n    Note: You cannot override the price of a multi-pack product. Trying to do so will return an error.\n    "
          }
        },
        "description": "A list of products that will go on the order"
      },
      "SelectedShippingRate": {
        "required": [
          "rateCode"
        ],
        "type": "object",
        "properties": {
          "carrier": {
            "type": "string",
            "nullable": true,
            "enum": [
              "UPS",
              "FEDEX",
              "GLS",
              "SELF"
            ]
          },
          "rateCode": {
            "maxLength": 24,
            "minLength": 1,
            "type": "string"
          },
          "price": {
            "type": "number",
            "nullable": true
          },
          "rateDescription": {
            "maxLength": 50,
            "type": "string",
            "nullable": true
          }
        },
        "description": "The shipping rate that will be used to ship the order. You can call the Estimate Shipping API to get a list of shipping rates for a specific address. You can also call the Get Shipping Rate Codes API to get a list of all possible rate codes for the producer."
      },
      "StateIdForm": {
        "required": [
          "expirationDate",
          "issuingState",
          "number"
        ],
        "type": "object",
        "properties": {
          "number": {
            "type": "string"
          },
          "issuingState": {
            "type": "string"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          }
        },
        "description": "\n            The StateID that was scanned or viewed by the employee.          \n        "
      },
      "TeamMemberLookup": {
        "required": [
          "criteria"
        ],
        "type": "object",
        "properties": {
          "teamMemberId": {
            "type": "integer",
            "description": "The Vinoshipper Team Member ID",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "description": "The Vinoshipper User ID for the team member",
            "format": "int32"
          },
          "email": {
            "type": "string",
            "description": "The email address associated with the team member's account in Vinoshipper"
          },
          "externalId": {
            "type": "string",
            "description": "\n            The username or ID of the team member in the external system where the age verification was performed          \n        "
          },
          "stateId": {
            "$ref": "#/components/schemas/StateIdForm"
          },
          "criteria": {
            "$ref": "#/components/schemas/WinerySubAccountCriteria"
          }
        },
        "description": "The Vinoshipper team member information"
      },
      "WinerySubAccountCriteria": {
        "required": [
          "invalid"
        ],
        "type": "object",
        "properties": {
          "teamMemberId": {
            "type": "integer",
            "format": "int32"
          },
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "email": {
            "type": "string"
          },
          "externalId": {
            "type": "string"
          },
          "invalid": {
            "type": "boolean"
          }
        }
      }
    },
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```