VU CUSTOM
Developer Docs
Developer Docs
  • VU OS Admin API Overview
  • Account Management
    • Overview
    • Create a sold_to_account
    • Create a ship_to_account
    • Batch update sold_to_account
    • Batch update ship_to_account
    • Get a list of sold_to_accounts
    • Get a list of ship_to_accounts
    • Delete a sold_to_account
    • Delete a ship_to_account
  • Orders
    • Overview
    • Create an order
    • Get an order
    • Get a list of orders
    • Update an order
    • Delete an order
    • Add tags to an order
    • Add tags to many orders
    • Delete tags from an order
    • Delete tags from many orders
  • Products
    • Overview
    • Create a product
    • Get a list of products
    • Get a specific product
    • Delete a product
  • Recipes
    • Overview
    • Retrieving Recipes
  • Fulfillments
    • Overview
    • Create a fulfillment
    • Retrieve a fulfillment
    • Retrieve a list of fulfillments
  • Order Lines
    • Overview
    • Add tags to an order line
    • Retrieve a list of orderlines
    • Retrieve a specific order line
    • Delete tags from an order line
    • Update a specific order line
  • Integration
    • Integrate the Customizer with Your Frontend
    • Understanding Recipe IDs in VU Custom
    • Styling the Customizer
    • Test the Customizer
    • Webhooks
Powered by GitBook
On this page
  1. Orders

Update an order

PreviousGet a list of ordersNextDelete an order

Last updated 6 months ago

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

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"
      }
    ]
  }
}

401 Unauthorized

The client doesn’t have correct authentication credentials.

{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}

422 Unprocessable Entity

5xx Errors

An internal error occurred in VU Admin.

here