# ShipHero

> Manage ShipHero orders, products, stock, shipments, returns and purchase orders in your warehouses.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/shiphero

## Actions

### Add order note

Add a note to an order's history.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Add order tags

Add tags to an order, keeping its others.

**Inputs**

- Order (`order_id`, text, required): The order in ShipHero.
- Tags (`tags`, list, required): The tags to add.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Add stock

Add units of a product to a warehouse's stock.

**Inputs**

- Product (`sku`, text, required): The product's SKU.
- Warehouse (`warehouse_id`, text, required): The warehouse.
- Quantity (`quantity`, number, required): How many. At least 0.
- Reason (`reason`, text): Why the stock changed, shown in its history.
- Location ID (`location_id`, text): The bin location, for a warehouse that uses dynamic slotting.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "allocated": 1,
    "available": 1,
    "backorder": 1,
    "id": "example",
    "inventory_bin": "example",
    "on_hand": 1,
    "price": "example",
    "reorder_level": 1,
    "reserve_inventory": 1,
    "sku": "example",
    "updated_at": "example",
    "value": "example",
    "warehouse_id": "example",
    "warehouse_identifier": "example"
  }
}
```

### Cancel order

Cancel an order.

**Inputs**

- Order (`order_id`, text, required): The order in ShipHero.
- Reason (`reason`, text): Why the order is cancelled.
- Cancel in the store too (`void_on_platform`, true/false): Also cancel the order in the store it came from.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Create order

Create an order to fulfill, with its ship-to address and line items.

**Inputs**

- Order number (`order_number`, text, required): Your order number.
- Line items (`line_items`, list, required): The products ordered: each with its `sku`, `quantity` and `price`, and optionally `product_name`. Each line gets an ID made from the order number when it has no `partner_line_item_id`.
- First name (`first_name`, text, required): Ship-to first name.
- Last name (`last_name`, text): Ship-to last name.
- Company (`company`, text): Ship-to company.
- Address line 1 (`address1`, text, required): Ship-to street.
- Address line 2 (`address2`, text): Ship-to street line 2.
- City (`city`, text, required): Ship-to city.
- State (`state`, text): Ship-to state or province, such as `CA`.
- ZIP or postal code (`zip`, text): Ship-to ZIP or postal code.
- Country (`country`, text, required): Ship-to country as a two-letter code, such as `US`.
- Phone (`phone`, text): Ship-to phone.
- Email (`email`, text): The customer's email.
- Store (`shop_name`, text): The store the order came from, as named in ShipHero.
- Shipping method (`shipping_method`, text): The shipping method to show, such as `Ground`.
- Shipping price (`shipping_price`, number): What the customer paid for shipping.
- Fulfillment status (`fulfillment_status`, text): The order's status. ShipHero uses `pending` when empty.
- Order date (`order_date`, date and time): When the order was placed.
- Total (`total_price`, number): The order's total.
- Subtotal (`subtotal`, number): The order's subtotal.
- Tax (`total_tax`, number): The tax on the order.
- Tags (`tags`, list): Tags to add to the order.
- Packing note (`packing_note`, text): A note for the packer.
- Gift note (`gift_note`, text): A gift message printed for the customer.
- Ship by (`required_ship_date`, date and time): The date the order must ship by.
- Hold until (`hold_until_date`, date and time): Hold the order until this date.
- Priority (`priority_flag`, true/false): Flag the order as a priority.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Create product

Create a product and stock it in one warehouse.

**Inputs**

- Name (`name`, text, required): The product's name.
- SKU (`sku`, text, required): The product's SKU, unique in ShipHero.
- Warehouse (`warehouse_id`, text, required): The warehouse to stock it in.
- On hand (`on_hand`, number): How many are in that warehouse now. 0 when empty. At least 0.
- Price (`price`, number): The selling price.
- Value (`value`, number): What one costs you.
- Barcode (`barcode`, text): The barcode.
- Tariff code (`tariff_code`, text): The customs tariff (HS) code.
- Country of manufacture (`country_of_manufacture`, text): Where it is made, as a two-letter code, such as `US`.
- Tags (`tags`, list): Tags for the product.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "barcode": "example",
    "country_of_manufacture": "example",
    "created_at": "example",
    "dimensions": {
      "height": "example",
      "length": "example",
      "weight": "example",
      "width": "example"
    },
    "dropship": true,
    "final_sale": true,
    "id": "example",
    "images": [
      {
        "position": 1,
        "src": "example"
      }
    ],
    "kit": true,
    "legacy_id": 1,
    "name": "example",
    "product_note": "example",
    "sku": "example",
    "tags": [
      "example"
    ],
    "tariff_code": "example",
    "updated_at": "example",
    "virtual": true,
    "warehouse_products": [
      {
        "active": true,
        "allocated": 1,
        "available": 1,
        "backorder": 1,
        "id": "example",
        "inventory_bin": "example",
        "on_hand": 1,
        "price": "example",
        "reorder_level": 1,
        "reserve_inventory": 1,
        "sku": "example",
        "updated_at": "example",
        "value": "example",
        "warehouse_id": "example",
        "warehouse_identifier": "example"
      }
    ]
  }
}
```

### Delete product

Delete a product from every warehouse.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "complexity": 1,
    "request_id": "example"
  }
}
```

### Get account

Read the connected ShipHero account and its warehouses.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "id": "example",
    "is_3pl": true,
    "is_multi_warehouse": true,
    "legacy_id": 1,
    "status": "example",
    "username": "example",
    "warehouses": [
      {
        "address": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "country": "example",
          "name": "example",
          "phone": "example",
          "state": "example",
          "zip": "example"
        },
        "company_name": "example",
        "id": "example",
        "identifier": "example",
        "legacy_id": 1,
        "phone_number": "example"
      }
    ]
  }
}
```

### Get order

Read one order with its address, line items, holds and tags.

**Inputs**

- Order (`order_id`, text, required): The order in ShipHero.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Get product

Read one product by its SKU, with its stock in each warehouse.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "barcode": "example",
    "country_of_manufacture": "example",
    "created_at": "example",
    "dimensions": {
      "height": "example",
      "length": "example",
      "weight": "example",
      "width": "example"
    },
    "dropship": true,
    "final_sale": true,
    "id": "example",
    "images": [
      {
        "position": 1,
        "src": "example"
      }
    ],
    "kit": true,
    "legacy_id": 1,
    "name": "example",
    "product_note": "example",
    "sku": "example",
    "tags": [
      "example"
    ],
    "tariff_code": "example",
    "updated_at": "example",
    "virtual": true,
    "warehouse_products": [
      {
        "active": true,
        "allocated": 1,
        "available": 1,
        "backorder": 1,
        "id": "example",
        "inventory_bin": "example",
        "on_hand": 1,
        "price": "example",
        "reorder_level": 1,
        "reserve_inventory": 1,
        "sku": "example",
        "updated_at": "example",
        "value": "example",
        "warehouse_id": "example",
        "warehouse_identifier": "example"
      }
    ]
  }
}
```

### Get purchase order

Read one purchase order by its PO number.

**Inputs**

- PO number (`po_number`, text, required): The purchase order's number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "arrived_at": "example",
    "created_at": "example",
    "date_closed": "example",
    "description": "example",
    "fulfillment_status": "example",
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "fulfillment_status": "example",
            "id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_received": 1,
            "quantity_rejected": 1,
            "sku": "example"
          }
        }
      ]
    },
    "po_date": "example",
    "po_note": "example",
    "po_number": "example",
    "shipping_price": "example",
    "subtotal": "example",
    "tax": "example",
    "total_price": "example",
    "tracking_number": "example",
    "vendor_id": "example",
    "warehouse_id": "example"
  }
}
```

### List orders

List orders with filters for order number, status, SKU, email, store, warehouse and dates.

**Inputs**

- Order number (`order_number`, text): Only the order with this number.
- Fulfillment status (`fulfillment_status`, text): Only orders in this fulfillment status, such as `pending`, `fulfilled` or `canceled`, or one of your own.
- SKU (`sku`, text): Only orders containing this SKU.
- Email (`email`, text): Only orders from this customer email.
- Store (`shop_name`, text): Only orders from this store, by its name in ShipHero.
- Warehouse (`warehouse_id`, text): Only orders for this warehouse.
- Placed after (`order_date_from`, date and time): Only orders placed on or after this time.
- Placed before (`order_date_to`, date and time): Only orders placed on or before this time.
- Updated after (`updated_from`, date and time): Only orders changed on or after this time.
- Updated before (`updated_to`, date and time): Only orders changed on or before this time.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.
- Limit (`limit`, number): How many orders to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "email": "example",
        "fulfillment_status": "example",
        "gift_note": "example",
        "hold_until_date": "example",
        "holds": {
          "address_hold": true,
          "client_hold": true,
          "fraud_hold": true,
          "operator_hold": true,
          "payment_hold": true,
          "shipping_method_hold": true
        },
        "id": "example",
        "legacy_id": 1,
        "line_items": {
          "edges": [
            {
              "node": {
                "backorder_quantity": 1,
                "fulfillment_status": "example",
                "id": "example",
                "partner_line_item_id": "example",
                "price": "example",
                "product_name": "example",
                "quantity": 1,
                "quantity_allocated": 1,
                "quantity_shipped": 1,
                "sku": "example"
              }
            }
          ]
        },
        "order_date": "example",
        "order_number": "example",
        "packing_note": "example",
        "partner_order_id": "example",
        "priority_flag": true,
        "profile": "example",
        "required_ship_date": "example",
        "shipping_address": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "company": "example",
          "country": "example",
          "country_code": "example",
          "email": "example",
          "first_name": "example",
          "last_name": "example",
          "phone": "example",
          "state": "example",
          "state_code": "example",
          "zip": "example"
        },
        "shipping_lines": {
          "carrier": "example",
          "method": "example",
          "price": "example",
          "title": "example"
        },
        "shop_name": "example",
        "subtotal": "example",
        "tags": [
          "example"
        ],
        "total_discounts": "example",
        "total_price": "example",
        "total_tax": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List products

List products with their stock in each warehouse, optionally by SKU or when they were created or changed.

**Inputs**

- SKU (`sku`, text): Only the product with this SKU.
- Created after (`created_from`, date and time): Only products created on or after this time.
- Created before (`created_to`, date and time): Only products created on or before this time.
- Updated after (`updated_from`, date and time): Only products changed on or after this time.
- Updated before (`updated_to`, date and time): Only products changed on or before this time.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.
- Limit (`limit`, number): How many products to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "active": true,
        "barcode": "example",
        "country_of_manufacture": "example",
        "created_at": "example",
        "dimensions": {
          "height": "example",
          "length": "example",
          "weight": "example",
          "width": "example"
        },
        "dropship": true,
        "final_sale": true,
        "id": "example",
        "images": [
          {
            "position": 1,
            "src": "example"
          }
        ],
        "kit": true,
        "legacy_id": 1,
        "name": "example",
        "product_note": "example",
        "sku": "example",
        "tags": [
          "example"
        ],
        "tariff_code": "example",
        "updated_at": "example",
        "virtual": true,
        "warehouse_products": [
          {
            "active": true,
            "allocated": 1,
            "available": 1,
            "backorder": 1,
            "id": "example",
            "inventory_bin": "example",
            "on_hand": 1,
            "price": "example",
            "reorder_level": 1,
            "reserve_inventory": 1,
            "sku": "example",
            "updated_at": "example",
            "value": "example",
            "warehouse_id": "example",
            "warehouse_identifier": "example"
          }
        ]
      }
    ],
    "next_cursor": "example"
  }
}
```

### List purchase orders

List purchase orders with their items, optionally by SKU, warehouse or date.

**Inputs**

- SKU (`sku`, text): Only purchase orders for this SKU.
- Warehouse (`warehouse_id`, text): Only purchase orders for this warehouse.
- Created after (`created_from`, date and time): Only purchase orders created on or after this time.
- Created before (`created_to`, date and time): Only purchase orders created on or before this time.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.
- Limit (`limit`, number): How many purchase orders to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "arrived_at": "example",
        "created_at": "example",
        "date_closed": "example",
        "description": "example",
        "fulfillment_status": "example",
        "id": "example",
        "legacy_id": 1,
        "line_items": {
          "edges": [
            {
              "node": {
                "fulfillment_status": "example",
                "id": "example",
                "price": "example",
                "product_name": "example",
                "quantity": 1,
                "quantity_received": 1,
                "quantity_rejected": 1,
                "sku": "example"
              }
            }
          ]
        },
        "po_date": "example",
        "po_note": "example",
        "po_number": "example",
        "shipping_price": "example",
        "subtotal": "example",
        "tax": "example",
        "total_price": "example",
        "tracking_number": "example",
        "vendor_id": "example",
        "warehouse_id": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List returns

List returns (RMAs) with their items and status, for one order, one warehouse or a span of dates.

**Inputs**

- Order (`order_id`, text): Only returns of this order.
- Warehouse (`warehouse_id`, text): Only returns to this warehouse.
- From (`date_from`, date and time): Only returns made on or after this time.
- To (`date_to`, date and time): Only returns made on or before this time.
- Limit (`limit`, number): How many returns to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "address": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "country": "example",
          "name": "example",
          "phone": "example",
          "state": "example",
          "zip": "example"
        },
        "cost_to_customer": "example",
        "created_at": "example",
        "id": "example",
        "label_cost": "example",
        "legacy_id": 1,
        "line_items": [
          {
            "condition": "example",
            "id": "example",
            "line_item_id": "example",
            "quantity": 1,
            "quantity_received": 1,
            "reason": "example",
            "restock": 1
          }
        ],
        "order_id": "example",
        "partner_id": "example",
        "reason": "example",
        "shipping_carrier": "example",
        "shipping_method": "example",
        "status": "example",
        "total_items_expected": 1,
        "total_items_received": 1,
        "total_items_restocked": 1
      }
    ],
    "next_cursor": "example"
  }
}
```

### List shipments

List shipments with their labels and tracking numbers, for one order or a span of dates.

**Inputs**

- Order (`order_id`, text): Only shipments of this order.
- From (`date_from`, date and time): Only shipments made on or after this time.
- To (`date_to`, date and time): Only shipments made on or before this time.
- Limit (`limit`, number): How many shipments to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "address": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "country": "example",
          "name": "example",
          "phone": "example",
          "state": "example",
          "zip": "example"
        },
        "completed": true,
        "created_date": "example",
        "delivered": true,
        "id": "example",
        "legacy_id": 1,
        "order_id": "example",
        "picked_up": true,
        "refunded": true,
        "shipped_off_shiphero": true,
        "shipping_labels": [
          {
            "carrier": "example",
            "cost": "example",
            "created_date": "example",
            "id": "example",
            "shipping_method": "example",
            "shipping_name": "example",
            "status": "example",
            "tracking_number": "example"
          }
        ],
        "warehouse_id": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List stock changes

List changes to on-hand stock, with who made each and why.

**Inputs**

- SKU (`sku`, text): Only changes to this SKU.
- Warehouse (`warehouse_id`, text): Only changes in this warehouse.
- From (`date_from`, date and time): Only changes on or after this time.
- To (`date_to`, date and time): Only changes on or before this time.
- Limit (`limit`, number): How many changes to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "change_in_on_hand": 1,
        "created_at": "example",
        "cycle_counted": true,
        "location_id": "example",
        "previous_on_hand": 1,
        "reason": "example",
        "sku": "example",
        "user_id": "example",
        "warehouse_id": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List stock levels

List stock by warehouse: on hand, available, allocated and backordered for each SKU.

**Inputs**

- Warehouse (`warehouse_id`, text): Only this warehouse.
- SKU (`sku`, text): Only this SKU.
- Active (`active`, true/false): Active products only (or inactive only, when off).
- Updated after (`updated_from`, date and time): Only stock changed on or after this time.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.
- Limit (`limit`, number): How many stock records to return, up to 100. ShipHero charges query credits per record, so smaller pages go further. From 1 to 100. Default: `25`.
- Cursor (`cursor`, text): To read the next page, the next_cursor a previous list step returned.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "active": true,
        "allocated": 1,
        "available": 1,
        "backorder": 1,
        "id": "example",
        "inventory_bin": "example",
        "on_hand": 1,
        "price": "example",
        "reorder_level": 1,
        "reserve_inventory": 1,
        "sku": "example",
        "updated_at": "example",
        "value": "example",
        "warehouse_id": "example",
        "warehouse_identifier": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### Remove stock

Take units of a product out of a warehouse's stock.

**Inputs**

- Product (`sku`, text, required): The product's SKU.
- Warehouse (`warehouse_id`, text, required): The warehouse.
- Quantity (`quantity`, number, required): How many. At least 0.
- Reason (`reason`, text): Why the stock changed, shown in its history.
- Location ID (`location_id`, text): The bin location, for a warehouse that uses dynamic slotting.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "allocated": 1,
    "available": 1,
    "backorder": 1,
    "id": "example",
    "inventory_bin": "example",
    "on_hand": 1,
    "price": "example",
    "reorder_level": 1,
    "reserve_inventory": 1,
    "sku": "example",
    "updated_at": "example",
    "value": "example",
    "warehouse_id": "example",
    "warehouse_identifier": "example"
  }
}
```

### Set stock

Set how many of a product a warehouse has on hand.

**Inputs**

- Product (`sku`, text, required): The product's SKU.
- Warehouse (`warehouse_id`, text, required): The warehouse.
- Quantity (`quantity`, number, required): How many. At least 0.
- Reason (`reason`, text): Why the stock changed, shown in its history.
- Location ID (`location_id`, text): The bin location, for a warehouse that uses dynamic slotting.
- Customer account ID (`customer_account_id`, text): For a 3PL account: the customer account the record belongs to. Leave empty otherwise.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "allocated": 1,
    "available": 1,
    "backorder": 1,
    "id": "example",
    "inventory_bin": "example",
    "on_hand": 1,
    "price": "example",
    "reorder_level": 1,
    "reserve_inventory": 1,
    "sku": "example",
    "updated_at": "example",
    "value": "example",
    "warehouse_id": "example",
    "warehouse_identifier": "example"
  }
}
```

### Update order

Change an order's notes, ship-by or hold-until date, or priority.

**Inputs**

- Order (`order_id`, text, required): The order in ShipHero.
- Packing note (`packing_note`, text): A note for the packer.
- Gift note (`gift_note`, text): A gift message printed for the customer.
- Ship by (`required_ship_date`, date and time): The date the order must ship by.
- Hold until (`hold_until_date`, date and time): Hold the order until this date.
- Priority (`priority_flag`, true/false): Flag the order as a priority.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Update order status

Change an order's fulfillment status, such as to `fulfilled` or a status of your own.

**Inputs**

- Order (`order_id`, text, required): The order in ShipHero.
- Fulfillment status (`fulfillment_status`, text, required): The new status, such as `pending`, `fulfilled` or one of your own.
- Reason (`reason`, text): Why the status changed.
- Remove inventory (`remove_inventory`, true/false): Take the items out of stock when marking the order fulfilled.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "email": "example",
    "fulfillment_status": "example",
    "gift_note": "example",
    "hold_until_date": "example",
    "holds": {
      "address_hold": true,
      "client_hold": true,
      "fraud_hold": true,
      "operator_hold": true,
      "payment_hold": true,
      "shipping_method_hold": true
    },
    "id": "example",
    "legacy_id": 1,
    "line_items": {
      "edges": [
        {
          "node": {
            "backorder_quantity": 1,
            "fulfillment_status": "example",
            "id": "example",
            "partner_line_item_id": "example",
            "price": "example",
            "product_name": "example",
            "quantity": 1,
            "quantity_allocated": 1,
            "quantity_shipped": 1,
            "sku": "example"
          }
        }
      ]
    },
    "order_date": "example",
    "order_number": "example",
    "packing_note": "example",
    "partner_order_id": "example",
    "priority_flag": true,
    "profile": "example",
    "required_ship_date": "example",
    "shipping_address": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "company": "example",
      "country": "example",
      "country_code": "example",
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "phone": "example",
      "state": "example",
      "state_code": "example",
      "zip": "example"
    },
    "shipping_lines": {
      "carrier": "example",
      "method": "example",
      "price": "example",
      "title": "example"
    },
    "shop_name": "example",
    "subtotal": "example",
    "tags": [
      "example"
    ],
    "total_discounts": "example",
    "total_price": "example",
    "total_tax": "example"
  }
}
```

### Update product

Change a product's name, barcode, tariff code, tags or packer note.

**Inputs**

- Product (`sku`, text, required): The product's SKU.
- Name (`name`, text): The product's name.
- Barcode (`barcode`, text): The barcode.
- Tariff code (`tariff_code`, text): The customs tariff (HS) code.
- Packer note (`packer_note`, text): A note shown to packers.
- Tags (`tags`, list): The product's tags, replacing its current ones.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "barcode": "example",
    "country_of_manufacture": "example",
    "created_at": "example",
    "dimensions": {
      "height": "example",
      "length": "example",
      "weight": "example",
      "width": "example"
    },
    "dropship": true,
    "final_sale": true,
    "id": "example",
    "images": [
      {
        "position": 1,
        "src": "example"
      }
    ],
    "kit": true,
    "legacy_id": 1,
    "name": "example",
    "product_note": "example",
    "sku": "example",
    "tags": [
      "example"
    ],
    "tariff_code": "example",
    "updated_at": "example",
    "virtual": true,
    "warehouse_products": [
      {
        "active": true,
        "allocated": 1,
        "available": 1,
        "backorder": 1,
        "id": "example",
        "inventory_bin": "example",
        "on_hand": 1,
        "price": "example",
        "reorder_level": 1,
        "reserve_inventory": 1,
        "sku": "example",
        "updated_at": "example",
        "value": "example",
        "warehouse_id": "example",
        "warehouse_identifier": "example"
      }
    ]
  }
}
```
