# Ordoro

> Manage Ordoro orders, tracking, tags, products, stock and purchase orders across your sales channels and warehouses.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/ordoro

## Actions

### Add order comment

Add a comment to an order's timeline.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.
- Comment (`comment`, text, required): The comment.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "date": "example",
    "text": "example",
    "user": "example"
  }
}
```

### Add tracking

Mark an order shipped with a tracking number shipped outside Ordoro, optionally notifying the customer and the sales channel.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.
- Tracking number (`tracking_number`, text, required): The tracking number.
- Carrier (`carrier_name`, text, required): The carrier, such as `UPS`, `USPS` or `FedEx`.
- Ship date (`ship_date`, date and time, required): When it shipped.
- Shipping method (`shipping_method`, text): The service, such as `Ground`.
- Cost (`cost`, number): What the shipment cost.
- Tracking URL (`tracking_url`, text): A link to track the package.
- Email the recipient (`notify_ship_to`, true/false): Email the tracking to the ship-to address.
- Email the buyer (`notify_bill_to`, true/false): Email the tracking to the billing address.
- Update the sales channel (`notify_cart`, true/false): Send the tracking to the sales channel the order came from.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "carrier_name": "example",
    "cost": 1,
    "has_label": true,
    "ship_date": "example",
    "shipping_method": "example",
    "tracking_number": "example",
    "tracking_url": "example"
  }
}
```

### Archive product

Archive a product so it no longer shows in lists or syncs.

**Inputs**

- Product (`sku`, text, required): The product's SKU.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "archive_date": "example",
    "category": "example",
    "cost": 1,
    "created": "example",
    "id": 1,
    "internal_notes": "example",
    "name": "example",
    "price": 1,
    "sku": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "total_available": 1,
    "total_committed": 1,
    "total_on_hand": 1,
    "upc": "example",
    "updated": "example",
    "weight": 1
  }
}
```

### Cancel order

Cancel an order and return it.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allocation_status": "example",
    "barcode": "example",
    "billing_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "cancelled_date": "example",
    "created_date": "example",
    "deliver_by_date": "example",
    "financial": {
      "discount_amount": 1,
      "grand_total": 1,
      "product_amount": 1,
      "shipping_amount": 1,
      "tax_amount": 1
    },
    "id": 1,
    "internal_notes": "example",
    "lines": [
      {
        "details": "example",
        "id": 1,
        "item_price": 1,
        "product_name": "example",
        "quantity": 1,
        "sku": "example"
      }
    ],
    "notes_from_customer": "example",
    "order_number": "example",
    "order_placed_date": "example",
    "requested_shipping_method": "example",
    "sales_channel": {
      "id": 1,
      "name": "example"
    },
    "ship_by_date": "example",
    "shipping_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "shipping_info": {
      "carrier_name": "example",
      "cost": 1,
      "has_label": true,
      "ship_date": "example",
      "shipping_method": "example",
      "tracking_number": "example",
      "tracking_url": "example"
    },
    "status": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "updated_date": "example",
    "warehouse": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Create order

Create an order with a ship-to address and its lines. A SKU Ordoro doesn't have yet becomes a new product.

**Inputs**

- Order ID (`order_id`, text, required): A unique ID for the order. Ordoro's order number is made from it, such as `M-1001` for `1001`.
- Lines (`lines`, list, required): The products ordered: each with its `sku`, `quantity` and `item_price`, and optionally `product_name`.
- Name (`shipping_address_name`, text, required): Name on the ship-to address.
- Company (`shipping_address_company`, text): Company on the ship-to address.
- Street (`shipping_address_street1`, text): Street on the ship-to address.
- Street line 2 (`shipping_address_street2`, text): Street line 2 on the ship-to address.
- City (`shipping_address_city`, text): City on the ship-to address.
- State (`shipping_address_state`, text): State on the ship-to address.
- ZIP or postal code (`shipping_address_zip`, text): ZIP or postal code on the ship-to address.
- Country (`shipping_address_country`, text): The ship-to address country, such as `US`.
- Email (`shipping_address_email`, text): Email on the ship-to address.
- Phone (`shipping_address_phone`, text): Phone on the ship-to address.
- Billing name (`billing_name`, text): Name on the billing address. The ship-to address is used for billing when empty.
- Billing email (`billing_email`, text): Email on the billing address.
- Sales channel (`cart`, number): The sales channel the order belongs to. Ordoro's manual orders channel when empty.
- Warehouse (`warehouse_id`, number): The warehouse to ship from.
- Order date (`order_date`, date and time): When the order was placed. Now when empty.
- Requested shipping (`shipping_type`, text): The shipping method the customer asked for, such as `Ground`.
- Ship by (`ship_by_date`, date and time): The date the order must ship by.
- Deliver by (`deliver_by_date`, date and time): The date the order must arrive by.
- Shipping amount (`shipping_amount`, number): What the customer paid for shipping.
- Tax (`tax_amount`, number): The tax on the order.
- Discount (`discount_amount`, number): The discount on the order.
- Grand total (`grand_total`, number): The order's total.
- Customer notes (`notes_from_customer`, text): Notes from the customer.
- Internal notes (`internal_notes`, text): Notes for your team.
- Tags (`tags`, list): Names of order tags to add.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allocation_status": "example",
    "barcode": "example",
    "billing_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "cancelled_date": "example",
    "created_date": "example",
    "deliver_by_date": "example",
    "financial": {
      "discount_amount": 1,
      "grand_total": 1,
      "product_amount": 1,
      "shipping_amount": 1,
      "tax_amount": 1
    },
    "id": 1,
    "internal_notes": "example",
    "lines": [
      {
        "details": "example",
        "id": 1,
        "item_price": 1,
        "product_name": "example",
        "quantity": 1,
        "sku": "example"
      }
    ],
    "notes_from_customer": "example",
    "order_number": "example",
    "order_placed_date": "example",
    "requested_shipping_method": "example",
    "sales_channel": {
      "id": 1,
      "name": "example"
    },
    "ship_by_date": "example",
    "shipping_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "shipping_info": {
      "carrier_name": "example",
      "cost": 1,
      "has_label": true,
      "ship_date": "example",
      "shipping_method": "example",
      "tracking_number": "example",
      "tracking_url": "example"
    },
    "status": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "updated_date": "example",
    "warehouse": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Create order tag

Create an order tag.

**Inputs**

- Name (`name`, text, required): The tag's name.
- Color (`color`, text): The tag's color as a hex code, such as `#C0392B`. Default: `#7F8C8D`.

**Outputs**

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

**Example output**

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

### Create product

Create a product.

**Inputs**

- SKU (`sku`, text, required): The product's SKU, unique in Ordoro.
- Name (`name`, text, required): The product's name.
- Price (`price`, number): The selling price.
- Cost (`cost`, number): What the product costs you.
- Weight (oz) (`weight`, number): The weight in ounces.
- UPC (`upc`, text): The barcode (UPC).
- Category (`category`, text): The product's category.
- Internal notes (`internal_notes`, text): Notes for your team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "archive_date": "example",
    "category": "example",
    "cost": 1,
    "created": "example",
    "id": 1,
    "internal_notes": "example",
    "name": "example",
    "price": 1,
    "sku": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "total_available": 1,
    "total_committed": 1,
    "total_on_hand": 1,
    "upc": "example",
    "updated": "example",
    "weight": 1
  }
}
```

### Delete order tag

Delete an order tag, taking it off every order.

**Inputs**

- Tag (`tag_name`, text, required): The order tag's name.

**Outputs**

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

**Example output**

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

### Get current user

Read the Ordoro user the API key belongs to.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "company_id": 1,
    "email": "example",
    "id": 1,
    "name": "example"
  }
}
```

### Get order

Read one order with its addresses, lines, tags and shipping details.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allocation_status": "example",
    "barcode": "example",
    "billing_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "cancelled_date": "example",
    "created_date": "example",
    "deliver_by_date": "example",
    "financial": {
      "discount_amount": 1,
      "grand_total": 1,
      "product_amount": 1,
      "shipping_amount": 1,
      "tax_amount": 1
    },
    "id": 1,
    "internal_notes": "example",
    "lines": [
      {
        "details": "example",
        "id": 1,
        "item_price": 1,
        "product_name": "example",
        "quantity": 1,
        "sku": "example"
      }
    ],
    "notes_from_customer": "example",
    "order_number": "example",
    "order_placed_date": "example",
    "requested_shipping_method": "example",
    "sales_channel": {
      "id": 1,
      "name": "example"
    },
    "ship_by_date": "example",
    "shipping_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "shipping_info": {
      "carrier_name": "example",
      "cost": 1,
      "has_label": true,
      "ship_date": "example",
      "shipping_method": "example",
      "tracking_number": "example",
      "tracking_url": "example"
    },
    "status": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "updated_date": "example",
    "warehouse": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Get product

Read one product by its SKU, with its stock.

**Inputs**

- Product (`sku`, text, required): The product's SKU.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "archive_date": "example",
    "category": "example",
    "cost": 1,
    "created": "example",
    "id": 1,
    "internal_notes": "example",
    "name": "example",
    "price": 1,
    "sku": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "total_available": 1,
    "total_committed": 1,
    "total_on_hand": 1,
    "upc": "example",
    "updated": "example",
    "weight": 1
  }
}
```

### Get purchase order

Read one purchase order with its items, supplier and receipts.

**Inputs**

- Purchase order (`po_id`, text, required): The purchase order's number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created": "example",
    "discount_amount": 1,
    "estimated_delivery_date": "example",
    "instructions": "example",
    "items": [
      {
        "id": 1,
        "product": {
          "name": "example",
          "sku": "example"
        },
        "quantity": 1,
        "unit_price": 1
      }
    ],
    "payment_method": "example",
    "po_id": "example",
    "sent": "example",
    "shipping_amount": 1,
    "shipping_method": "example",
    "status": "example",
    "supplier": {
      "address": {
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "id": 1,
        "name": "example",
        "phone": "example",
        "state": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "id": 1
    },
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "tax_amount": 1,
    "updated": "example",
    "warehouse": {
      "address": {
        "city": "example",
        "company": "example",
        "country": "example",
        "email": "example",
        "id": 1,
        "name": "example",
        "phone": "example",
        "state": "example",
        "street1": "example",
        "street2": "example",
        "zip": "example"
      },
      "id": 1
    }
  }
}
```

### List order tags

List the tags orders can carry.

**Inputs**

- Limit (`limit`, number): How many tags to return, up to 100. Ordoro returns 10 when empty. From 1 to 100.
- Offset (`offset`, number): How many tags to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "limit": 1,
    "offset": 1,
    "tag": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### List orders

List orders with filters for status, sales channel, warehouse, tag, SKU and dates.

**Inputs**

- Status (`status`, text): Only orders with this status. Choose All to include every status. One of: `awaiting_fulfillment` (Awaiting fulfillment), `on_hold` (On hold), `shipped`, `cancelled`, `dropshipment_requested` (Dropshipment requested), `merged`, `archived`, `all`.
- Search (`search`, text): Search orders by number, name, email or address.
- Sales channel (`sales_channel`, number): Only orders from this sales channel.
- Warehouse (`warehouse_id`, number): Only orders shipping from this warehouse.
- Tag (`tag`, text): Only orders with this tag.
- SKU (`sku`, text): Only orders containing this SKU.
- Created after (`created_after`, date and time): Created after (orders added since then)
- Updated after (`updated_after`, date and time): Updated after (orders changed since then)
- Shipped after (`shipped_after`, date and time): Shipped after (orders shipped since then)
- Sort (`sort`, text): The order to list them in. One of: `-created_date` (Newest first), `created_date` (Oldest first), `-updated_date` (Recently updated first), `updated_date` (Least recently updated first), `-order_placed_date` (Most recently placed first), `order_placed_date` (Earliest placed first), `-ship_date` (Most recently shipped first), `ship_date` (Earliest shipped first), `-cancelled_date` (Most recently cancelled first), `cancelled_date` (Earliest cancelled first), and 4 more.
- Limit (`limit`, number): How many orders to return, up to 100. Ordoro returns 10 when empty. From 1 to 100.
- Offset (`offset`, number): How many orders to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "limit": 1,
    "offset": 1,
    "order": [
      {
        "allocation_status": "example",
        "barcode": "example",
        "billing_address": {
          "city": "example",
          "company": "example",
          "country": "example",
          "email": "example",
          "id": 1,
          "name": "example",
          "phone": "example",
          "state": "example",
          "street1": "example",
          "street2": "example",
          "zip": "example"
        },
        "cancelled_date": "example",
        "created_date": "example",
        "deliver_by_date": "example",
        "financial": {
          "discount_amount": 1,
          "grand_total": 1,
          "product_amount": 1,
          "shipping_amount": 1,
          "tax_amount": 1
        },
        "id": 1,
        "internal_notes": "example",
        "lines": [
          {
            "details": "example",
            "id": 1,
            "item_price": 1,
            "product_name": "example",
            "quantity": 1,
            "sku": "example"
          }
        ],
        "notes_from_customer": "example",
        "order_number": "example",
        "order_placed_date": "example",
        "requested_shipping_method": "example",
        "sales_channel": {
          "id": 1,
          "name": "example"
        },
        "ship_by_date": "example",
        "shipping_address": {
          "city": "example",
          "company": "example",
          "country": "example",
          "email": "example",
          "id": 1,
          "name": "example",
          "phone": "example",
          "state": "example",
          "street1": "example",
          "street2": "example",
          "zip": "example"
        },
        "shipping_info": {
          "carrier_name": "example",
          "cost": 1,
          "has_label": true,
          "ship_date": "example",
          "shipping_method": "example",
          "tracking_number": "example",
          "tracking_url": "example"
        },
        "status": "example",
        "tags": [
          {
            "color": "example",
            "id": 1,
            "name": "example"
          }
        ],
        "updated_date": "example",
        "warehouse": {
          "id": 1,
          "name": "example"
        }
      }
    ]
  }
}
```

### List products

List products with their stock, optionally searching or filtering by SKU, tag, warehouse or last change.

**Inputs**

- Search (`search`, text): Search by SKU or name.
- SKU (`sku`, text): Only the product with this SKU.
- Tag (`tag`, text): Only products with this tag.
- Warehouse (`warehouse_id`, number): Only products stocked in this warehouse.
- Active (`active`, text): Active products only, or archived ones only. One of: `true` (Active only), `false` (Archived only).
- Updated after (`updated_after`, date and time): Updated after (products changed since then)
- Limit (`limit`, number): How many products to return, up to 100. Ordoro returns 10 when empty. From 1 to 100.
- Offset (`offset`, number): How many products to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "limit": 1,
    "offset": 1,
    "product": [
      {
        "archive_date": "example",
        "category": "example",
        "cost": 1,
        "created": "example",
        "id": 1,
        "internal_notes": "example",
        "name": "example",
        "price": 1,
        "sku": "example",
        "tags": [
          {
            "color": "example",
            "id": 1,
            "name": "example"
          }
        ],
        "total_available": 1,
        "total_committed": 1,
        "total_on_hand": 1,
        "upc": "example",
        "updated": "example",
        "weight": 1
      }
    ]
  }
}
```

### List purchase orders

List purchase orders, optionally by status, supplier, warehouse or SKU.

**Inputs**

- Status (`status`, text): Only purchase orders with this status. One of: `unsent`, `sent`, `partial`, `received`, `cancelled`, `all`.
- Search (`search`, text): Search purchase orders.
- Supplier (`supplier_id`, number): Only purchase orders from this supplier.
- Warehouse (`warehouse_id`, number): Only purchase orders for this warehouse.
- SKU (`sku`, text): Only purchase orders for this SKU.
- Sort (`sort`, text): The order to list them in. One of: `-created` (Newest first), `created` (Oldest first), `-updated` (Recently updated first), `updated` (Least recently updated first), `po_id` (PO number (A to Z)), `-po_id` (PO number (Z to A)).
- Limit (`limit`, number): How many purchase orders to return, up to 100. Ordoro returns 10 when empty. From 1 to 100.
- Offset (`offset`, number): How many purchase orders to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "limit": 1,
    "offset": 1,
    "purchase_order": [
      {
        "created": "example",
        "discount_amount": 1,
        "estimated_delivery_date": "example",
        "instructions": "example",
        "items": [
          {
            "id": 1,
            "product": {
              "name": "example",
              "sku": "example"
            },
            "quantity": 1,
            "unit_price": 1
          }
        ],
        "payment_method": "example",
        "po_id": "example",
        "sent": "example",
        "shipping_amount": 1,
        "shipping_method": "example",
        "status": "example",
        "supplier": {
          "address": {
            "city": "example",
            "company": "example",
            "country": "example",
            "email": "example",
            "id": 1,
            "name": "example",
            "phone": "example",
            "state": "example",
            "street1": "example",
            "street2": "example",
            "zip": "example"
          },
          "id": 1
        },
        "tags": [
          {
            "color": "example",
            "id": 1,
            "name": "example"
          }
        ],
        "tax_amount": 1,
        "updated": "example",
        "warehouse": {
          "address": {
            "city": "example",
            "company": "example",
            "country": "example",
            "email": "example",
            "id": 1,
            "name": "example",
            "phone": "example",
            "state": "example",
            "street1": "example",
            "street2": "example",
            "zip": "example"
          },
          "id": 1
        }
      }
    ]
  }
}
```

### List sales channels

List the sales channels (stores and marketplaces) connected to Ordoro.

**Inputs**

- Limit (`limit`, number): How many sales channels to return, up to 100. Ordoro returns 10 when empty. From 1 to 100.
- Offset (`offset`, number): How many sales channels to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "cart": [
      {
        "id": 1,
        "index": 1,
        "name": "example",
        "vendor": "example"
      }
    ],
    "count": 1,
    "limit": 1,
    "offset": 1
  }
}
```

### List suppliers

List suppliers and dropshippers.

**Inputs**

- Limit (`limit`, number): How many suppliers to return, up to 100. Ordoro returns 10 when empty. From 1 to 100.
- Offset (`offset`, number): How many suppliers to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "limit": 1,
    "offset": 1,
    "supplier": [
      {
        "address": {
          "city": "example",
          "company": "example",
          "country": "example",
          "email": "example",
          "id": 1,
          "name": "example",
          "phone": "example",
          "state": "example",
          "street1": "example",
          "street2": "example",
          "zip": "example"
        },
        "archive_date": "example",
        "created": "example",
        "id": 1,
        "updated": "example"
      }
    ]
  }
}
```

### List warehouses

List the account's warehouses.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "limit": 1,
    "offset": 1,
    "warehouse": [
      {
        "address": {
          "city": "example",
          "company": "example",
          "country": "example",
          "email": "example",
          "id": 1,
          "name": "example",
          "phone": "example",
          "state": "example",
          "street1": "example",
          "street2": "example",
          "zip": "example"
        },
        "created_date": "example",
        "id": 1,
        "is_default_location": true,
        "updated_date": "example",
        "warehouse_name": "example"
      }
    ]
  }
}
```

### Remove tag from order

Take a tag off an order. Returns the order's tags.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.
- Tag (`tag_name`, text, required): The order tag's name.

**Outputs**

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

**Example output**

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

### Tag order

Add an existing order tag to an order. Returns the order's tags.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.
- Tag (`tag_name`, text, required): The order tag's name.

**Outputs**

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

**Example output**

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

### Update order

Change an order's notes and its ship-by or deliver-by date.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.
- Customer notes (`notes_from_customer`, text): Notes from the customer.
- Internal notes (`internal_notes`, text): Notes for your team.
- Ship by (`ship_by_date`, date and time): The date the order must ship by.
- Deliver by (`deliver_by_date`, date and time): The date the order must arrive by.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allocation_status": "example",
    "barcode": "example",
    "billing_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "cancelled_date": "example",
    "created_date": "example",
    "deliver_by_date": "example",
    "financial": {
      "discount_amount": 1,
      "grand_total": 1,
      "product_amount": 1,
      "shipping_amount": 1,
      "tax_amount": 1
    },
    "id": 1,
    "internal_notes": "example",
    "lines": [
      {
        "details": "example",
        "id": 1,
        "item_price": 1,
        "product_name": "example",
        "quantity": 1,
        "sku": "example"
      }
    ],
    "notes_from_customer": "example",
    "order_number": "example",
    "order_placed_date": "example",
    "requested_shipping_method": "example",
    "sales_channel": {
      "id": 1,
      "name": "example"
    },
    "ship_by_date": "example",
    "shipping_address": {
      "city": "example",
      "company": "example",
      "country": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "phone": "example",
      "state": "example",
      "street1": "example",
      "street2": "example",
      "zip": "example"
    },
    "shipping_info": {
      "carrier_name": "example",
      "cost": 1,
      "has_label": true,
      "ship_date": "example",
      "shipping_method": "example",
      "tracking_number": "example",
      "tracking_url": "example"
    },
    "status": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "updated_date": "example",
    "warehouse": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Update product

Change a product's name, price, cost, weight, barcode, category or notes.

**Inputs**

- Product (`sku`, text, required): The product's SKU.
- Name (`name`, text): The product's name.
- Price (`price`, number): The selling price.
- Cost (`cost`, number): What the product costs you.
- Weight (oz) (`weight`, number): The weight in ounces.
- UPC (`upc`, text): The barcode (UPC).
- Category (`category`, text): The product's category.
- Internal notes (`internal_notes`, text): Notes for your team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "archive_date": "example",
    "category": "example",
    "cost": 1,
    "created": "example",
    "id": 1,
    "internal_notes": "example",
    "name": "example",
    "price": 1,
    "sku": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "total_available": 1,
    "total_committed": 1,
    "total_on_hand": 1,
    "upc": "example",
    "updated": "example",
    "weight": 1
  }
}
```

### Update ship-to address

Change where an order ships to.

**Inputs**

- Order (`order_number`, text, required): The order's number in Ordoro, such as `M-1001`.
- Name (`name`, text): Name on the ship-to address.
- Company (`company`, text): Company on the ship-to address.
- Street (`street1`, text): Street on the ship-to address.
- Street line 2 (`street2`, text): Street line 2 on the ship-to address.
- City (`city`, text): City on the ship-to address.
- State (`state`, text): State on the ship-to address.
- ZIP or postal code (`zip`, text): ZIP or postal code on the ship-to address.
- Country (`country`, text): The ship-to address country, such as `US`.
- Email (`email`, text): Email on the ship-to address.
- Phone (`phone`, text): Phone on the ship-to address.
- Validate address (`validate`, true/false): Ask Ordoro to check the address with the carrier.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "city": "example",
    "company": "example",
    "country": "example",
    "email": "example",
    "id": 1,
    "name": "example",
    "phone": "example",
    "state": "example",
    "street1": "example",
    "street2": "example",
    "zip": "example"
  }
}
```

### Update stock

Set or adjust how many of a product are in one warehouse, and where it is kept.

**Inputs**

- Product (`sku`, text, required): The product's SKU.
- Warehouse (`warehouse_id`, number, required): The warehouse in Ordoro.
- On hand (`physical_on_hand`, number): The number physically in the warehouse. At least 0.
- Adjust by (`adjustment`, number): Add this many (or take them away, with a negative number).
- Location (`location_in_warehouse`, text): Where it is kept, such as `Aisle 3, Bin 4`.
- Low stock level (`low_stock_threshold`, number): Flag the product as low in stock at this level.
- Reason (`comment`, text): Why the stock changed, shown in the product's history.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "archive_date": "example",
    "category": "example",
    "cost": 1,
    "created": "example",
    "id": 1,
    "internal_notes": "example",
    "name": "example",
    "price": 1,
    "sku": "example",
    "tags": [
      {
        "color": "example",
        "id": 1,
        "name": "example"
      }
    ],
    "total_available": 1,
    "total_committed": 1,
    "total_on_hand": 1,
    "upc": "example",
    "updated": "example",
    "weight": 1
  }
}
```
