# Sellbrite

> Read Sellbrite orders from every channel, add tracking, and manage products, variation groups, inventory and warehouses.

App · 17 actions. Web page: https://docs.lodol.com/docs/integrations/sellbrite

## Actions

### Add shipment

Record a shipment with its tracking number against an order; Sellbrite sends the tracking to the channel.

**Inputs**

- Order (`sb_order_seq`, number, required): The order's Sellbrite order number.
- Carrier (`carrier_name`, text, required): The carrier. Choose Other for any carrier not listed. One of: `USPS`, `UPS`, `FedEx`, `Australia Post`, `Canada Post`, `Deutsche Post`, `DHL eCommerce`, `DHL Express`, `Lasership`, `OnTrac`, `Royal Mail`, `Other`.
- Tracking number (`tracking_number`, text, required): The tracking number.
- Items (`items`, list, required): What shipped: each with the order item's `sku` and the `quantity` shipped.
- Shipping method (`shipping_method`, text): The service, such as `Priority Mail` or `Ground`.
- Warehouse (`warehouse_uuid`, text): The warehouse it shipped from.
- Tracking URL (`tracking_url`, text): A link to track the package.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```

### Create or update product

Create a product with this SKU, or change the one that has it. A name is needed to create one.

**Inputs**

- SKU (`sku`, text, required): The product's SKU, unique in your catalog.
- Name (`name`, text): The product's name.
- Description (`description`, text): The product's description.
- Price (`price`, number): The selling price.
- MSRP (`msrp`, number): The list price (MSRP).
- Brand (`brand`, text): The brand.
- Manufacturer (`manufacturer`, text): The manufacturer.
- Model number (`manufacturer_model_number`, text): The manufacturer's model number.
- Condition (`condition`, text): The item's condition. One of: `new`, `used`, `reconditioned`.
- Category (`category_name`, text): The product's category.
- UPC (`upc`, text): The UPC barcode.
- EAN (`ean`, text): The EAN barcode.
- ASIN (`asin`, text): The Amazon ASIN.
- Package weight (`package_weight`, number): The package weight, in the weight unit.
- Weight unit (`package_unit_of_weight`, text): The unit of the package weight. One of: `lb`, `oz`, `kg`, `g`.
- Package length (`package_length`, number): The package length, in the length unit.
- Package width (`package_width`, number): The package width, in the length unit.
- Package height (`package_height`, number): The package height, in the length unit.
- Length unit (`package_unit_of_length`, text): The unit of the package dimensions. One of: `in`, `ft`, `cm`, `mm`, `m`.
- Image URLs (`image_list`, list): Web addresses of the product's images.
- Features (`features`, list): Bullet-point features.
- Custom attributes (`custom_attributes`, object): Your own attributes, such as `{"color": "red"}`.
- Notes (`notes`, text): Internal notes.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "brand": "example",
    "category_name": "example",
    "condition": "example",
    "custom_attributes": {},
    "description": "example",
    "ean": "example",
    "image_list": [
      "example"
    ],
    "manufacturer": "example",
    "msrp": 1,
    "name": "example",
    "parent_sku": "example",
    "price": 1,
    "sku": "example",
    "upc": "example"
  }
}
```

### Create or update variation group

Group products that differ by attributes, such as size or color, under one parent SKU.

**Inputs**

- Group SKU (`sku`, text, required): The variation group's own SKU.
- Name (`name`, text, required): The group's name.
- Products (`child_skus`, list, required): The SKUs of the products in the group.
- Varies by (`variation_attributes`, list, required): The custom attributes the products differ by, as Sellbrite stores them, such as `size` or `waist_size`.
- Description (`description`, text): The group's description.
- Image URLs (`images`, list): Web addresses of the group's images.

**Outputs**

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

**Example output**

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

### Create warehouse

Create a warehouse and return its ID.

**Inputs**

- Name (`name`, text, required): The warehouse's name.
- Sender name (`sender_name`, text): The sender name on labels.
- Company name (`company_name`, text): The company name on labels.
- Email (`email`, text): The warehouse's email.
- Phone (`phone_number`, text): The warehouse's phone number.
- Address line 1 (`address_1`, text): Street address.
- Address line 2 (`address_2`, text): Street address, line 2.
- City (`city`, text): City.
- State or region (`region`, text): State or region.
- ZIP or postal code (`postal_code`, text): ZIP or postal code.
- Country (`country_code`, text): Two-letter country code, such as `US`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example",
    "warehouse_uuid": "example"
  }
}
```

### Delete product

Delete a product.

**Inputs**

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

**Outputs**

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

**Example output**

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

### Delete variation group

Delete a variation group, keeping the products in it.

**Inputs**

- Group SKU (`sku`, text, required): The variation group's SKU.

**Outputs**

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

**Example output**

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

### Get order

Read one order by its Sellbrite order number, with its items and addresses.

**Inputs**

- Order (`sb_order_seq`, number, required): The order's Sellbrite order number (sb_order_seq).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billing_contact_name": "example",
    "billing_email": "example",
    "cancelled_at": "example",
    "channel_name": "example",
    "channel_type_display_name": "example",
    "channel_uuid": "example",
    "customer_notes": "example",
    "deliver_by_date": "example",
    "discount": 1,
    "display_ref": "example",
    "items": [
      {
        "cancelled_at": "example",
        "inventory_sku": "example",
        "order_item_ref": "example",
        "quantity": 1,
        "quantity_fulfilled": 1,
        "sku": "example",
        "status": "example",
        "tax": 1,
        "title": "example",
        "total": 1,
        "unit_price": 1
      }
    ],
    "merchant_notes": "example",
    "ordered_at": "example",
    "paid_at": "example",
    "requested_shipping_provider": "example",
    "requested_shipping_service": "example",
    "sb_order_seq": 1,
    "sb_payment_status": "example",
    "sb_status": "example",
    "ship_by_date": "example",
    "shipment_status": "example",
    "shipped_at": "example",
    "shipping_address_1": "example",
    "shipping_address_2": "example",
    "shipping_city": "example",
    "shipping_company_name": "example",
    "shipping_contact_name": "example",
    "shipping_cost": 1,
    "shipping_country_code": "example",
    "shipping_email": "example",
    "shipping_phone_number": "example",
    "shipping_postal_code": "example",
    "shipping_state_region": "example",
    "subtotal": 1,
    "tax": 1,
    "total": 1
  }
}
```

### Get product

Read one product, variation or variation group by its SKU.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {
    "brand": "example",
    "category_name": "example",
    "condition": "example",
    "custom_attributes": {},
    "description": "example",
    "ean": "example",
    "image_list": [
      "example"
    ],
    "manufacturer": "example",
    "msrp": 1,
    "name": "example",
    "parent_sku": "example",
    "price": 1,
    "sku": "example",
    "upc": "example"
  }
}
```

### List channels

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

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "channel_site_region": "example",
      "channel_type_display_name": "example",
      "created_at": "example",
      "name": "example",
      "site_id": "example",
      "state": "example",
      "uuid": "example"
    }
  ]
}
```

### List inventory

List stock by SKU and warehouse: on hand, reserved and available.

**Inputs**

- Warehouse (`warehouse_uuid`, text): Only this warehouse.
- SKU (`sku`, text): Only this SKU.
- Changed since (`updated_at_min`, date): Only stock changed on or after this date.
- Created since (`created_at_min`, date): Only stock records created on or after this date.
- Page (`page`, number): Which page of inventory records to read, starting at 1. At least 1.
- Limit (`limit`, number): How many inventory records to return per page, up to 100. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "asin": "example",
      "available": 1,
      "bin_location": "example",
      "cost": 1,
      "fnsku": "example",
      "on_hand": 1,
      "product_name": "example",
      "reserved": 1,
      "sku": "example",
      "upc": "example",
      "warehouse_uuid": "example"
    }
  ]
}
```

### List orders

List orders from every channel, with filters for when they were placed and their status, payment and shipment.

**Inputs**

- Ordered after (`min_ordered_at`, date and time): Only orders placed after this time.
- Ordered before (`max_ordered_at`, date and time): Only orders placed before this time.
- Status (`sb_status`, text): Only open, completed (paid and shipped) or cancelled orders. One of: `open`, `completed`, `canceled` (Cancelled).
- Payment status (`sb_payment_status`, text): Only orders paid in full, in part, or not at all. One of: `all` (All items), `partial` (Some items), `none` (No items).
- Shipment status (`shipment_status`, text): Only orders shipped in full, in part, or not at all. One of: `all` (All items), `partial` (Some items), `none` (No items).
- Page (`page`, number): Which page of orders to read, starting at 1. At least 1.
- Limit (`limit`, number): How many orders to return per page, up to 100. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "billing_contact_name": "example",
      "billing_email": "example",
      "cancelled_at": "example",
      "channel_name": "example",
      "channel_type_display_name": "example",
      "channel_uuid": "example",
      "customer_notes": "example",
      "deliver_by_date": "example",
      "discount": 1,
      "display_ref": "example",
      "items": [
        {
          "cancelled_at": "example",
          "inventory_sku": "example",
          "order_item_ref": "example",
          "quantity": 1,
          "quantity_fulfilled": 1,
          "sku": "example",
          "status": "example",
          "tax": 1,
          "title": "example",
          "total": 1,
          "unit_price": 1
        }
      ],
      "merchant_notes": "example",
      "ordered_at": "example",
      "paid_at": "example",
      "requested_shipping_provider": "example",
      "requested_shipping_service": "example",
      "sb_order_seq": 1,
      "sb_payment_status": "example",
      "sb_status": "example",
      "ship_by_date": "example",
      "shipment_status": "example",
      "shipped_at": "example",
      "shipping_address_1": "example",
      "shipping_address_2": "example",
      "shipping_city": "example",
      "shipping_company_name": "example",
      "shipping_contact_name": "example",
      "shipping_cost": 1,
      "shipping_country_code": "example",
      "shipping_email": "example",
      "shipping_phone_number": "example",
      "shipping_postal_code": "example",
      "shipping_state_region": "example",
      "subtotal": 1,
      "tax": 1,
      "total": 1
    }
  ]
}
```

### List orders to fulfill

List the open orders assigned to one warehouse, with how many of each item it should ship.

**Inputs**

- Warehouse (`warehouse_uuid`, text, required): The warehouse in Sellbrite.
- Ordered after (`min_ordered_at`, date and time): Only orders placed after this time.
- Ordered before (`max_ordered_at`, date and time): Only orders placed before this time.
- Status (`sb_status`, text): Only open, completed (paid and shipped) or cancelled orders. One of: `open`, `completed`, `canceled` (Cancelled).
- Payment status (`sb_payment_status`, text): Only orders paid in full, in part, or not at all. One of: `all` (All items), `partial` (Some items), `none` (No items).
- Shipment status (`shipment_status`, text): Only orders shipped in full, in part, or not at all. One of: `all` (All items), `partial` (Some items), `none` (No items).
- Page (`page`, number): Which page of orders to read, starting at 1. At least 1.
- Limit (`limit`, number): How many orders to return per page, up to 100. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "billing_contact_name": "example",
      "billing_email": "example",
      "cancelled_at": "example",
      "channel_name": "example",
      "channel_type_display_name": "example",
      "channel_uuid": "example",
      "customer_notes": "example",
      "deliver_by_date": "example",
      "discount": 1,
      "display_ref": "example",
      "items": [
        {
          "cancelled_at": "example",
          "fulfillment_quantity": 1,
          "inventory_sku": "example",
          "order_item_ref": "example",
          "quantity": 1,
          "quantity_fulfilled": 1,
          "sku": "example",
          "status": "example",
          "tax": 1,
          "title": "example",
          "total": 1,
          "unit_price": 1
        }
      ],
      "merchant_notes": "example",
      "ordered_at": "example",
      "paid_at": "example",
      "requested_shipping_provider": "example",
      "requested_shipping_service": "example",
      "sb_order_seq": 1,
      "sb_payment_status": "example",
      "sb_status": "example",
      "ship_by_date": "example",
      "shipment_status": "example",
      "shipped_at": "example",
      "shipping_address_1": "example",
      "shipping_address_2": "example",
      "shipping_city": "example",
      "shipping_company_name": "example",
      "shipping_contact_name": "example",
      "shipping_cost": 1,
      "shipping_country_code": "example",
      "shipping_email": "example",
      "shipping_phone_number": "example",
      "shipping_postal_code": "example",
      "shipping_state_region": "example",
      "subtotal": 1,
      "tax": 1,
      "total": 1
    }
  ]
}
```

### List products

List products, optionally only some SKUs or those changed in a span of time.

**Inputs**

- SKUs (`skus`, list): Only these SKUs.
- Changed after (`min_modified_at`, date and time): Only products changed after this time.
- Changed before (`max_modified_at`, date and time): Only products changed before this time.
- Page (`page`, number): Which page of products to read, starting at 1. At least 1.
- Limit (`limit`, number): How many products to return per page, up to 100. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "brand": "example",
      "category_name": "example",
      "condition": "example",
      "custom_attributes": {},
      "description": "example",
      "ean": "example",
      "image_list": [
        "example"
      ],
      "manufacturer": "example",
      "msrp": 1,
      "name": "example",
      "parent_sku": "example",
      "price": 1,
      "sku": "example",
      "upc": "example"
    }
  ]
}
```

### List variation groups

List variation groups (parent products) and the products in each.

**Inputs**

- SKUs (`skus`, list): Only these variation group SKUs.
- Page (`page`, number): Which page of variation groups to read, starting at 1. At least 1.
- Limit (`limit`, number): How many variation groups to return per page, up to 100. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "description": "example",
      "name": "example",
      "sku": "example",
      "variation_keys": [
        "example"
      ],
      "variations": [
        {
          "brand": "example",
          "category_name": "example",
          "condition": "example",
          "custom_attributes": {},
          "description": "example",
          "ean": "example",
          "image_list": [
            "example"
          ],
          "manufacturer": "example",
          "msrp": 1,
          "name": "example",
          "parent_sku": "example",
          "price": 1,
          "sku": "example",
          "upc": "example"
        }
      ]
    }
  ]
}
```

### List warehouses

List the account's warehouses, including Fulfilled by Amazon ones.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "address_1": "example",
      "address_2": "example",
      "archived": true,
      "city": "example",
      "country_code": "example",
      "inventory_master": "example",
      "name": "example",
      "postal_code": "example",
      "state_region": "example",
      "uuid": "example"
    }
  ]
}
```

### Set inventory

Set a SKU's on-hand or available stock in a warehouse, creating the record if needed. Sellbrite applies it in the background.

**Inputs**

- Product (`sku`, text, required): The SKU.
- Warehouse (`warehouse_uuid`, text, required): The warehouse.
- Available (`available`, number): How many are available to sell. Sellbrite recommends this over On hand, so open orders aren't counted twice. At least 0.
- On hand (`on_hand`, number): How many are physically in the warehouse. At least 0.
- Reason (`description`, text): Why the stock changed.
- Bin location (`bin_location`, text): Where it is kept in the warehouse.
- Cost (`cost`, number): What one unit costs you.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```

### Update warehouse

Change a warehouse's name, label details or address.

**Inputs**

- Warehouse (`warehouse_uuid`, text, required): The warehouse in Sellbrite.
- Name (`name`, text): The warehouse's name.
- Sender name (`sender_name`, text): The sender name on labels.
- Company name (`company_name`, text): The company name on labels.
- Email (`email`, text): The warehouse's email.
- Phone (`phone_number`, text): The warehouse's phone number.
- Address line 1 (`address_1`, text): Street address.
- Address line 2 (`address_2`, text): Street address, line 2.
- City (`city`, text): City.
- State or region (`region`, text): State or region.
- ZIP or postal code (`postal_code`, text): ZIP or postal code.
- Country (`country_code`, text): Two-letter country code, such as `US`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example"
  }
}
```
