# Veeqo

> Manage Veeqo orders, products, stock, customers and tags across your stores and warehouses.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/veeqo

## Actions

### Add order note

Add an internal note to an order.

**Inputs**

- Order (`order_id`, number, required): The order in Veeqo.
- Note (`text`, text, required): The note.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "id": 1,
    "order_id": 1,
    "text": "example"
  }
}
```

### Cancel order

Cancel an order, optionally emailing the customer, and return the cancelled order.

**Inputs**

- Order (`order_id`, number, required): The order in Veeqo.
- Reason (`cancel_reason`, text): Why the order is cancelled.
- Email the customer (`send_veeqo_email`, true/false): Email the customer that the order is cancelled.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "allocations": [
      {
        "id": 1,
        "warehouse": {
          "id": 1,
          "name": "example"
        }
      }
    ],
    "cancel_reason": "example",
    "cancelled_at": "example",
    "channel": {
      "id": 1,
      "name": "example"
    },
    "created_at": "example",
    "customer": {
      "email": "example",
      "id": 1
    },
    "deliver_to": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "delivery_cost": 1,
    "delivery_method": {
      "id": 1,
      "name": "example"
    },
    "due_date": "example",
    "id": 1,
    "line_items": [
      {
        "id": 1,
        "price_per_unit": 1,
        "quantity": 1,
        "sellable": {
          "id": 1,
          "product_title": "example",
          "sku_code": "example",
          "title": "example"
        },
        "tax_rate": 1
      }
    ],
    "notes": "example",
    "number": "example",
    "shipped_at": "example",
    "status": "example",
    "subtotal_price": 1,
    "tags": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "total_discounts": 1,
    "total_price": 1,
    "total_tax": 1,
    "updated_at": "example"
  }
}
```

### Create customer

Create a retail or business customer with a billing address.

**Inputs**

- Email (`email`, text, required): The customer's email address.
- Customer type (`customer_type`, text): Retail or business (wholesale). One of: `retail`, `business`. Default: `retail`.
- Phone (`phone`, text): Phone number.
- Mobile (`mobile`, text): Mobile number.
- Notes (`notes`, text): Notes about the customer, up to 255 characters.
- First name (`billing_address_first_name`, text): First name of the address.
- Last name (`billing_address_last_name`, text): Last name of the address.
- Company (`billing_address_company`, text): Company of the address.
- Address line 1 (`billing_address_address1`, text): Address line 1 of the address.
- Address line 2 (`billing_address_address2`, text): Address line 2 of the address.
- City (`billing_address_city`, text): City of the address.
- State or county (`billing_address_state`, text): State or county of the address.
- ZIP or postal code (`billing_address_zip`, text): ZIP or postal code of the address.
- Country (`billing_address_country`, text): Two-letter ISO country code, such as `US` or `GB`.
- Phone (`billing_address_phone`, text): Phone of the address.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "billing_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "created_by_id": 1,
    "customer_type": "example",
    "email": "example",
    "id": 1,
    "mobile": "example",
    "notes": "example",
    "phone": "example",
    "shipping_addresses": [
      {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    ]
  }
}
```

### Create order

Create an order in a store for an existing customer, with its line items and delivery address.

**Inputs**

- Store (`channel_id`, number, required): The store in Veeqo.
- Customer (`customer_id`, number, required): The customer in Veeqo.
- Delivery method (`delivery_method_id`, number, required): The delivery method in Veeqo.
- Line items (`line_items`, list, required): The products ordered: each with its variant ID (`sellable_id`), `quantity` and `price_per_unit`, and optionally `tax_rate` (0.2 for 20%).
- Saved delivery address ID (`deliver_to_id`, number): A saved shipping address of the customer to deliver to. Leave empty to enter the address instead.
- First name (`deliver_to_first_name`, text): First name of the address.
- Last name (`deliver_to_last_name`, text): Last name of the address.
- Company (`deliver_to_company`, text): Company of the address.
- Address line 1 (`deliver_to_address1`, text): Address line 1 of the address.
- Address line 2 (`deliver_to_address2`, text): Address line 2 of the address.
- City (`deliver_to_city`, text): City of the address.
- State or county (`deliver_to_state`, text): State or county of the address.
- ZIP or postal code (`deliver_to_zip`, text): ZIP or postal code of the address.
- Country (`deliver_to_country`, text): Two-letter ISO country code, such as `US` or `GB`.
- Phone (`deliver_to_phone`, text): Phone of the address.
- Order number (`number`, text): Your own order number. Veeqo makes one when empty.
- Due date (`due_date`, date): When the order is due to be delivered.
- Delivery cost (`delivery_cost`, number): What the customer pays for delivery.
- Total discounts (`total_discounts`, number): The discount on the whole order.
- Payment type (`payment_type`, text): How the order was paid. Leave empty for an unpaid order. One of: `none`, `cash`, `credit_card` (Credit card), `bank_transfer` (Bank transfer), `paypal`, `paypal_express` (PayPal Express), `sagepay` (Sage Pay), `checkmo` (Check or money order), `online_finance` (Online finance).
- Payment reference (`payment_reference`, text): The payment's reference, used with Payment type.
- Customer note (`customer_note`, text): A note from the customer, shown on the order.
- Internal note (`internal_note`, text): An internal note for your team.
- Email the customer (`send_notification_email`, true/false): Send the customer Veeqo's order confirmation email.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "allocations": [
      {
        "id": 1,
        "warehouse": {
          "id": 1,
          "name": "example"
        }
      }
    ],
    "cancel_reason": "example",
    "cancelled_at": "example",
    "channel": {
      "id": 1,
      "name": "example"
    },
    "created_at": "example",
    "customer": {
      "email": "example",
      "id": 1
    },
    "deliver_to": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "delivery_cost": 1,
    "delivery_method": {
      "id": 1,
      "name": "example"
    },
    "due_date": "example",
    "id": 1,
    "line_items": [
      {
        "id": 1,
        "price_per_unit": 1,
        "quantity": 1,
        "sellable": {
          "id": 1,
          "product_title": "example",
          "sku_code": "example",
          "title": "example"
        },
        "tax_rate": 1
      }
    ],
    "notes": "example",
    "number": "example",
    "shipped_at": "example",
    "status": "example",
    "subtotal_price": 1,
    "tags": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "total_discounts": 1,
    "total_price": 1,
    "total_tax": 1,
    "updated_at": "example"
  }
}
```

### Create product

Create a product with one variant (SKU).

**Inputs**

- Title (`title`, text, required): The product's name.
- SKU (`sku_code`, text, required): The variant's SKU, unique in Veeqo.
- Price (`price`, number, required): The variant's selling price.
- Variant title (`variant_title`, text): The variant's name, such as `Large`. The product's title when empty.
- Cost price (`cost_price`, number): What the variant costs you.
- Weight (grams) (`weight_grams`, number): The variant's weight in grams.
- Barcode (`upc_code`, text): The variant's barcode (UPC, EAN, GTIN, ISBN or ISSN).
- Tax rate (`tax_rate`, number): The variant's tax rate, such as 0.2 for 20%.
- Low stock level (`min_reorder_level`, number): Flag the variant as low on stock below this level. At least 0.
- Description (`description`, text): The customer-facing description.
- Notes (`notes`, text): Internal notes about the product.
- Image URL (`image_url`, text): The web address of a product image.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "description": "example",
    "estimated_delivery": "example",
    "id": 1,
    "notes": "example",
    "sellables": [
      {
        "available_stock_level_at_all_warehouses": 1,
        "cost_price": 1,
        "full_title": "example",
        "id": 1,
        "physical_stock_level_at_all_warehouses": 1,
        "price": 1,
        "product_title": "example",
        "sku_code": "example",
        "title": "example",
        "type": "example",
        "upc_code": "example",
        "weight_grams": 1
      }
    ],
    "title": "example",
    "updated_at": "example"
  }
}
```

### Create tag

Create a tag.

**Inputs**

- Name (`name`, text, required): The tag's name.
- Color (`colour`, text): The tag's color as a hex code, such as `#009aed`.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "colour": "example",
    "id": 1,
    "name": "example",
    "taggings_count": 1
  }
}
```

### Delete product

Delete a product and its variants.

**Inputs**

- Product (`product_id`, number, required): The product in Veeqo.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Delete tag

Delete a tag, taking it off every order and product.

**Inputs**

- Tag (`tag_id`, number, required): The tag in Veeqo.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Get company

Read the connected Veeqo company: its name and when it was created.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "id": 1,
    "name": "example",
    "updated_at": "example"
  }
}
```

### Get customer

Read one customer with their billing and shipping addresses.

**Inputs**

- Customer (`customer_id`, number, required): The customer in Veeqo.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "billing_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "created_by_id": 1,
    "customer_type": "example",
    "email": "example",
    "id": 1,
    "mobile": "example",
    "notes": "example",
    "phone": "example",
    "shipping_addresses": [
      {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    ]
  }
}
```

### Get order

Read one order with its customer, delivery address, line items, tags and allocations.

**Inputs**

- Order (`order_id`, number, required): The order in Veeqo.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "allocations": [
      {
        "id": 1,
        "warehouse": {
          "id": 1,
          "name": "example"
        }
      }
    ],
    "cancel_reason": "example",
    "cancelled_at": "example",
    "channel": {
      "id": 1,
      "name": "example"
    },
    "created_at": "example",
    "customer": {
      "email": "example",
      "id": 1
    },
    "deliver_to": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "delivery_cost": 1,
    "delivery_method": {
      "id": 1,
      "name": "example"
    },
    "due_date": "example",
    "id": 1,
    "line_items": [
      {
        "id": 1,
        "price_per_unit": 1,
        "quantity": 1,
        "sellable": {
          "id": 1,
          "product_title": "example",
          "sku_code": "example",
          "title": "example"
        },
        "tax_rate": 1
      }
    ],
    "notes": "example",
    "number": "example",
    "shipped_at": "example",
    "status": "example",
    "subtotal_price": 1,
    "tags": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "total_discounts": 1,
    "total_price": 1,
    "total_tax": 1,
    "updated_at": "example"
  }
}
```

### Get product

Read one product with its variants, stock and images.

**Inputs**

- Product (`product_id`, number, required): The product in Veeqo.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "description": "example",
    "estimated_delivery": "example",
    "id": 1,
    "notes": "example",
    "sellables": [
      {
        "available_stock_level_at_all_warehouses": 1,
        "cost_price": 1,
        "full_title": "example",
        "id": 1,
        "physical_stock_level_at_all_warehouses": 1,
        "price": 1,
        "product_title": "example",
        "sku_code": "example",
        "title": "example",
        "type": "example",
        "upc_code": "example",
        "weight_grams": 1
      }
    ],
    "title": "example",
    "updated_at": "example"
  }
}
```

### Get stock level

Read a variant's stock in one warehouse: on hand, allocated and available.

**Inputs**

- Product variant (`sellable_id`, number, required): The product variant (SKU) in Veeqo.
- Warehouse (`warehouse_id`, number, required): The warehouse in Veeqo.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "allocated_stock_level": 1,
    "available_stock_level": 1,
    "infinite": true,
    "location": "example",
    "physical_stock_level": 1,
    "sellable_id": 1,
    "warehouse_id": 1
  }
}
```

### List customers

List customers a page at a time, optionally searching by name or email.

**Inputs**

- Search (`query`, text): Search by name, email or phone.
- Customer type (`customer_type`, text): Only retail or only business customers. One of: `retail`, `business`.
- Page (`page`, number): Which page of customers to read, starting at 1. At least 1.
- Page size (`page_size`, number): How many customers to return per page, up to 100. Veeqo returns 12 when empty. From 1 to 100.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "billing_address": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      },
      "created_by_id": 1,
      "customer_type": "example",
      "email": "example",
      "id": 1,
      "mobile": "example",
      "notes": "example",
      "phone": "example",
      "shipping_addresses": [
        {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "company": "example",
          "country": "example",
          "email": "example",
          "first_name": "example",
          "id": 1,
          "last_name": "example",
          "phone": "example",
          "state": "example",
          "zip": "example"
        }
      ]
    }
  ]
}
```

### List delivery methods

List the delivery methods orders can use.

**Inputs**

- Page (`page`, number): Which page of delivery methods to read, starting at 1. At least 1.
- Page size (`page_size`, number): How many delivery methods to return per page, up to 100. Veeqo returns 1 when empty. From 1 to 100.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "cost": "example",
      "created_at": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  ]
}
```

### List orders

List orders a page at a time, newest first unless a sort is chosen, with filters for status, store, tag, warehouse and dates.

**Inputs**

- Status (`status`, text): Only orders with this status. One of: `awaiting_payment` (Awaiting payment), `awaiting_stock` (Awaiting stock), `awaiting_fulfillment` (Awaiting fulfillment), `shipped`, `on_hold` (On hold), `cancelled`, `refunded`.
- Search (`query`, text): Free-text search, such as an order number or customer name.
- Store (`channel_id`, number): Only orders from this store.
- Tag name (`tags`, text): Only orders with a tag of this name.
- Warehouse (`allocated_at`, number): Only orders allocated to this warehouse.
- Created after (`created_after`, date and time): Created after (orders made since then)
- Updated after (`updated_after`, date and time): Updated after (orders changed since then)
- Sort by (`order_by`, text): Sort by when orders were created or last changed. One of: `created_at` (Date created), `updated_at` (Date updated).
- Sort order (`order_direction`, text): Newest or oldest first, used with Sort by. One of: `desc` (Newest first), `asc` (Oldest first).
- Page (`page`, number): Which page of orders to read, starting at 1. At least 1.
- Page size (`page_size`, number): How many orders to return per page, up to 100. Veeqo returns 10 when empty. From 1 to 100.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "allocations": [
        {
          "id": 1,
          "warehouse": {
            "id": 1,
            "name": "example"
          }
        }
      ],
      "cancel_reason": "example",
      "cancelled_at": "example",
      "channel": {
        "id": 1,
        "name": "example"
      },
      "created_at": "example",
      "customer": {
        "email": "example",
        "id": 1
      },
      "deliver_to": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      },
      "delivery_cost": 1,
      "delivery_method": {
        "id": 1,
        "name": "example"
      },
      "due_date": "example",
      "id": 1,
      "line_items": [
        {
          "id": 1,
          "price_per_unit": 1,
          "quantity": 1,
          "sellable": {
            "id": 1,
            "product_title": "example",
            "sku_code": "example",
            "title": "example"
          },
          "tax_rate": 1
        }
      ],
      "notes": "example",
      "number": "example",
      "shipped_at": "example",
      "status": "example",
      "subtotal_price": 1,
      "tags": [
        {
          "id": 1,
          "name": "example"
        }
      ],
      "total_discounts": 1,
      "total_price": 1,
      "total_tax": 1,
      "updated_at": "example"
    }
  ]
}
```

### List products

List products with their variants (sellables) and stock, a page at a time.

**Inputs**

- Search (`query`, text): Search by product name or SKU.
- Warehouse (`warehouse_id`, number): Only products with stock in this warehouse.
- Created after (`created_after`, date and time): Created after (products added since then)
- Updated after (`updated_after`, date and time): Updated after (products changed since then)
- Page (`page`, number): Which page of products to read, starting at 1. At least 1.
- Page size (`page_size`, number): How many products to return per page, up to 100. Veeqo returns 12 when empty. From 1 to 100.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "description": "example",
      "estimated_delivery": "example",
      "id": 1,
      "notes": "example",
      "sellables": [
        {
          "available_stock_level_at_all_warehouses": 1,
          "cost_price": 1,
          "full_title": "example",
          "id": 1,
          "physical_stock_level_at_all_warehouses": 1,
          "price": 1,
          "product_title": "example",
          "sku_code": "example",
          "title": "example",
          "type": "example",
          "upc_code": "example",
          "weight_grams": 1
        }
      ],
      "title": "example",
      "updated_at": "example"
    }
  ]
}
```

### List stores

List the company's stores (sales channels), such as a Shopify shop or a phone store.

**Inputs**

- Page (`page`, number): Which page of stores to read, starting at 1. At least 1.
- Page size (`page_size`, number): How many stores to return per page, up to 100. Veeqo returns 12 when empty. From 1 to 100.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "currency_code": "example",
      "id": 1,
      "name": "example",
      "short_name": "example",
      "state": "example",
      "type_code": "example"
    }
  ]
}
```

### List tags

List the tags orders and products can carry.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "colour": "example",
      "id": 1,
      "name": "example",
      "taggings_count": 1
    }
  ]
}
```

### List warehouses

List the company's warehouses.

**Inputs**

- Page (`page`, number): Which page of warehouses to read, starting at 1. At least 1.
- Page size (`page_size`, number): How many warehouses to return per page, up to 100. Veeqo returns 10 when empty. From 1 to 100.

**Outputs**

- `data` (list): The response from Veeqo.

**Example output**

```json
{
  "data": [
    {
      "address_line_1": "example",
      "address_line_2": "example",
      "city": "example",
      "country": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "post_code": "example",
      "region": "example"
    }
  ]
}
```

### Remove tags from order

Take tags off an order.

**Inputs**

- Order (`order_id`, number, required): The order in Veeqo.
- Tags (`tag_ids`, list, required): The tags to take off.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Set stock level

Set how many of a variant are physically in one warehouse (paid Veeqo plans).

**Inputs**

- Product variant (`sellable_id`, number, required): The product variant (SKU) in Veeqo.
- Warehouse (`warehouse_id`, number, required): The warehouse in Veeqo.
- Stock level (`physical_stock_level`, number, required): The number physically in the warehouse. At least 0.
- Unlimited stock (`infinite`, true/false): Treat the stock as unlimited. Default: `false`.
- Location (`location`, text): Where it is kept in the warehouse, such as `Shelf 2B`.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "allocated_stock_level": 1,
    "available_stock_level": 1,
    "infinite": true,
    "location": "example",
    "physical_stock_level": 1,
    "sellable_id": 1,
    "warehouse_id": 1
  }
}
```

### Tag order

Add tags to an order.

**Inputs**

- Order (`order_id`, number, required): The order in Veeqo.
- Tags (`tag_ids`, list, required): The tags to add.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Update customer

Change a customer's email, type, phone numbers, notes or billing address.

**Inputs**

- Customer (`customer_id`, number, required): The customer in Veeqo.
- Email (`email`, text): The customer's email address.
- Customer type (`customer_type`, text): Retail or business (wholesale). One of: `retail`, `business`.
- Phone (`phone`, text): Phone number.
- Mobile (`mobile`, text): Mobile number.
- Notes (`notes`, text): Notes about the customer, up to 255 characters.
- First name (`billing_address_first_name`, text): First name of the address.
- Last name (`billing_address_last_name`, text): Last name of the address.
- Company (`billing_address_company`, text): Company of the address.
- Address line 1 (`billing_address_address1`, text): Address line 1 of the address.
- Address line 2 (`billing_address_address2`, text): Address line 2 of the address.
- City (`billing_address_city`, text): City of the address.
- State or county (`billing_address_state`, text): State or county of the address.
- ZIP or postal code (`billing_address_zip`, text): ZIP or postal code of the address.
- Country (`billing_address_country`, text): Two-letter ISO country code, such as `US` or `GB`.
- Phone (`billing_address_phone`, text): Phone of the address.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "billing_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "created_by_id": 1,
    "customer_type": "example",
    "email": "example",
    "id": 1,
    "mobile": "example",
    "notes": "example",
    "phone": "example",
    "shipping_addresses": [
      {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    ]
  }
}
```

### Update order

Change an order's delivery method, due date, delivery address, delivery cost or discount.

**Inputs**

- Order (`order_id`, number, required): The order in Veeqo.
- Delivery method (`delivery_method_id`, number): The delivery method in Veeqo.
- Due date (`due_date`, date): When the order is due to be delivered.
- Saved delivery address ID (`deliver_to_id`, number): Another saved shipping address of the customer to deliver to.
- Delivery cost (`delivery_cost`, number): What the customer pays for delivery.
- Total discounts (`total_discounts`, number): The discount on the whole order.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "allocations": [
      {
        "id": 1,
        "warehouse": {
          "id": 1,
          "name": "example"
        }
      }
    ],
    "cancel_reason": "example",
    "cancelled_at": "example",
    "channel": {
      "id": 1,
      "name": "example"
    },
    "created_at": "example",
    "customer": {
      "email": "example",
      "id": 1
    },
    "deliver_to": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "first_name": "example",
      "id": 1,
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "zip": "example"
    },
    "delivery_cost": 1,
    "delivery_method": {
      "id": 1,
      "name": "example"
    },
    "due_date": "example",
    "id": 1,
    "line_items": [
      {
        "id": 1,
        "price_per_unit": 1,
        "quantity": 1,
        "sellable": {
          "id": 1,
          "product_title": "example",
          "sku_code": "example",
          "title": "example"
        },
        "tax_rate": 1
      }
    ],
    "notes": "example",
    "number": "example",
    "shipped_at": "example",
    "status": "example",
    "subtotal_price": 1,
    "tags": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "total_discounts": 1,
    "total_price": 1,
    "total_tax": 1,
    "updated_at": "example"
  }
}
```

### Update product

Change a product's title, description, notes or delivery estimate.

**Inputs**

- Product (`product_id`, number, required): The product in Veeqo.
- Title (`title`, text): The product's name.
- Description (`description`, text): The customer-facing description.
- Notes (`notes`, text): Internal notes about the product.
- Days to ship (`estimated_delivery`, number): How many days the product takes to ship. At least 0.

**Outputs**

- `data` (object): The response from Veeqo.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "description": "example",
    "estimated_delivery": "example",
    "id": 1,
    "notes": "example",
    "sellables": [
      {
        "available_stock_level_at_all_warehouses": 1,
        "cost_price": 1,
        "full_title": "example",
        "id": 1,
        "physical_stock_level_at_all_warehouses": 1,
        "price": 1,
        "product_title": "example",
        "sku_code": "example",
        "title": "example",
        "type": "example",
        "upc_code": "example",
        "weight_grams": 1
      }
    ],
    "title": "example",
    "updated_at": "example"
  }
}
```
