Update an order

Method : PUT

https://admin.vucustom.com/api/:api_version/orders?id=&order_number=

URL Parameters

Field Name
Description

id

System-generated unique identifier for the order. Use either id or order_number

order_number

Unique order reference number. Used when id is not provided

Example Request
curl --location --request PUT 'https://admin.vucustom.com/api/v1/orders?id=&order_number=' \
--data '{
	"order":{
		"sales_order_number": "so-123",
		"purchase_order_number": "po-123",
		"ship_method_code": "FED",
		"ship_method_carrier": "Fedex",
		"ship_method_description": "Next day air, NDA"
	}

}'

refer to order and order line schema here

200 Successful response example

{
  "order": {
    "id": 432,
    "order_number": "ord-12s3425",
    "order_date": "2022-10-31T01:54:56.271Z",
    "note": null,
    "custom_attributes": {},
    "purchase_order_number": "po-123",
    "sales_order_number": "so-123",
    "ship_method_carrier": "ups",
    "ship_method_description": "Standard",
    "ship_method_code": "ups_standard",
    "tags": [
      "tag1",
      "tag2"
    ],
    "created_at": "2023-12-19T08:10:53.424Z",
    "updated_at": "2024-01-02T07:26:41.193Z",
    "ship_to": {
      "id": 13,
      "account_number": "SHPTO123",
      "address_1": "123 Main St",
      "address_2": "",
      "city": "Ridgewood",
      "company_name": "VU Custom",
      "state_region": "NJ",
      "country": "US",
      "first_name": "John",
      "last_name": "Smith",
      "phone": "2011231234",
      "postal_code": "07450",
      "created_at": "2022-10-31T01:54:56.271Z",
      "updated_at": "2022-10-31T01:54:56.271Z"
    },
    "sold_to": {
      "id": 17,
      "account_number": "SLDTO123",
      "address_1": "123 Main St",
      "address_2": "",
      "city": "Ridgewood",
      "company_name": "VU Custom",
      "state_region": "NJ",
      "country": "US",
      "first_name": "John",
      "last_name": "Smith",
      "phone": "2011231234",
      "postal_code": "07450",
      "created_at": "2022-10-31T01:54:56.271Z",
      "updated_at": "2022-10-31T01:54:56.271Z"
    },
    "order_lines": [
      {
        "id": 396,
        "sku": "SKU123",
        "customer_requested_date": "2022-10-31T01:54:56.271Z",
        "estimated_arrival_date": "2022-10-31T01:54:56.271Z",
        "line_reference": "59861396",
        "price": "70.0",
        "quantity": 1,
        "recipe_token": "1609c0e8",
        "status": "not_routed",
        "tags": [
          "tag1",
          "tag2"
        ],
        "ex_factory_date": {
          "calculated": "2022-10-31T01:54:56.271Z",
          "requested": null,
          "confirmed": null,
          "changes": []
        },
        "upc": null,
        "custom_attributes": {},
        "factory_code": null,
        "created_at": "2023-12-19T08:10:53.431Z",
        "updated_at": "2023-12-19T08:10:53.431Z"
      }
    ]
  }
}

Last updated