# SOS Inventory

> Manage items, customers, vendors, sales and purchase orders, and read invoices and shipments.

App · 28 actions. Web page: https://docs.lodol.com/docs/integrations/sos-inventory

## Actions

### Create customer

Add a customer.

**Inputs**

- Name (`name`, text, required): The name the customer is looked up by.
- Company name (`company_name`, text): The customer's company name.
- Email (`email`, text): The customer's email address.
- Phone (`phone`, text): The customer's phone number.
- Contact first name (`contact_first_name`, text): The first name of the person to contact.
- Contact last name (`contact_last_name`, text): The last name of the person to contact.
- Notes (`notes`, text): Internal notes about the customer.
- Credit hold (`credit_hold`, true/false): Whether the customer is on credit hold.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "altAddresses": [
      {}
    ],
    "altPhone": "example",
    "archived": true,
    "billWithParent": true,
    "billing": {},
    "businessLicense": "example",
    "companyName": "example",
    "contact": {},
    "contractorNumber": "example",
    "creditHold": true,
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customerType": {
      "id": 1,
      "name": "example"
    },
    "email": "example",
    "fax": "example",
    "foundUsVia": "example",
    "fullname": "example",
    "hasChildren": true,
    "id": 1,
    "name": "example",
    "notes": "example",
    "parent": {
      "id": 1,
      "name": "example"
    },
    "paymentMethod": {
      "id": 1,
      "name": "example"
    },
    "phone": "example",
    "priceTier": {
      "id": 1,
      "name": "example"
    },
    "resaleNumber": "example",
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "starred": 1,
    "sublevel": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "tax": {},
    "taxExemptReasonId": "example",
    "terms": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Create item

Add an item: a product, a service or anything else to track.

**Inputs**

- Name (`name`, text, required): The item's name, unique in its category.
- Description (`description`, text): The item's description on sales forms.
- SKU (`sku`, text): The item's stock keeping unit.
- Type (`type`, text): The kind of item, such as Inventory Item, Non-inventory Item or Service.
- Barcode (`barcode`, text): The digits of the item's barcode.
- Sales price (`base_sales_price`, number): The price the item sells for. At least 0.
- Purchase cost (`base_purchase_cost`, number): What the item costs to buy. At least 0.
- Reorder point (`reorder_point`, number): The stock level at which to reorder. At least 0.
- Category (`category`, text): The name of the item's category.
- Vendor (`vendor_id`, number): The vendor the item is bought from.
- Tags (`tags`, text): Tags, separated by commas.
- Notes (`notes`, text): Notes about the item.
- Taxable (`taxable`, true/false): Whether the item is taxable.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "alwaysShippable": true,
    "archived": true,
    "assetAccount": {
      "id": 1,
      "name": "example"
    },
    "available": 1,
    "barcode": "example",
    "basePurchaseCost": 1,
    "baseSalesPrice": 1,
    "bin": {
      "id": 1,
      "name": "example"
    },
    "category": {
      "id": 1,
      "name": "example"
    },
    "class": {
      "id": 1,
      "name": "example"
    },
    "cogsAccount": {
      "id": 1,
      "name": "example"
    },
    "commissionAmount": 1,
    "commissionExempt": true,
    "commissionRate": 1,
    "costBasis": 1,
    "customFields": [
      {}
    ],
    "customerPartNumber": "example",
    "description": "example",
    "expenseAccount": {
      "id": 1,
      "name": "example"
    },
    "fullname": "example",
    "hasImage": true,
    "id": 1,
    "incomeAccount": {
      "id": 1,
      "name": "example"
    },
    "leadTime": 1,
    "lotTracking": true,
    "markupPercent": 1,
    "maxStock": 1,
    "minimumPrice": 1,
    "name": "example",
    "notes": "example",
    "onPO": 1,
    "onRMA": 1,
    "onSO": 1,
    "onSR": 1,
    "onWO": 1,
    "onhand": 1,
    "priceTiers": [
      {}
    ],
    "purchaseCost": 1,
    "purchaseDescription": "example",
    "purchaseTaxCode": {
      "id": 1,
      "name": "example"
    },
    "rented": 1,
    "reorderPoint": 1,
    "salesPrice": 1,
    "salesTaxCode": {
      "id": 1,
      "name": "example"
    },
    "serialTracking": true,
    "showOnManufacturingForms": true,
    "showOnPurchasingForms": true,
    "showOnSalesForms": true,
    "sku": "example",
    "starred": 1,
    "sublevel": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "tags": "example",
    "taxable": true,
    "type": "example",
    "uoms": [
      {}
    ],
    "updateBigCommerce": true,
    "updateShopify": true,
    "url": "example",
    "useMarkup": true,
    "vendor": {
      "id": 1,
      "name": "example"
    },
    "vendorPartNumber": "example",
    "volume": 1,
    "warranty": "example",
    "weight": 1,
    "willSync": true
  }
}
```

### Create purchase order

Create a purchase order to a vendor with one item line.

**Inputs**

- Vendor (`vendor_id`, number, required): The vendor to buy from.
- Item (`item_id`, number, required): The item bought.
- Quantity (`quantity`, number, required): How many. At least 0.
- Unit price (`unit_price`, number): The price of one. At least 0.
- Line description (`line_description`, text): A description for the line.
- Number (`number`, text): The order number. SOS Inventory numbers it when left empty.
- Date (`date`, date and time): The order's date. Today when left empty.
- Location (`location`, text): The name of the location the order is filled from.
- Comment (`comment`, text): An internal comment, not shown to the other party.
- Expected (`expected_date`, date and time): When the goods are expected.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assignedToUser": {
      "id": 1,
      "name": "example"
    },
    "billing": {},
    "blanketPO": true,
    "closed": true,
    "comment": "example",
    "confirmed": true,
    "contractManufacturing": true,
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "depositAmount": 1,
    "depositPercent": 1,
    "dropShip": true,
    "exchangeRate": 1,
    "expectedDate": "example",
    "expectedShip": "example",
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "amount": 1,
        "bin": {},
        "class": {},
        "customer": {},
        "description": "example",
        "id": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "lot": {},
        "lotExpiration": "example",
        "quantity": 1,
        "received": 1,
        "serials": [
          {}
        ],
        "tax": {},
        "unitPrice": 1,
        "uom": {},
        "vendorPartNumber": "example",
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "linkedTransaction": {},
    "location": {
      "id": 1,
      "name": "example"
    },
    "number": "example",
    "pendingApproval": true,
    "shipping": {},
    "shippingMethod": {
      "id": 1,
      "name": "example"
    },
    "starred": 1,
    "subTotal": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxAmount": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "terms": {
      "id": 1,
      "name": "example"
    },
    "total": 1,
    "vendor": {
      "id": 1,
      "name": "example"
    },
    "vendorMessage": "example",
    "vendorNotes": "example"
  }
}
```

### Create sales order

Create a sales order for a customer with one item line.

**Inputs**

- Customer (`customer_id`, number, required): The customer ordering.
- Item (`item_id`, number, required): The item sold.
- Quantity (`quantity`, number, required): How many. At least 0.
- Unit price (`unit_price`, number): The price of one. At least 0.
- Line description (`line_description`, text): A description for the line.
- Number (`number`, text): The order number. SOS Inventory numbers it when left empty.
- Date (`date`, date and time): The order's date. Today when left empty.
- Location (`location`, text): The name of the location the order is filled from.
- Comment (`comment`, text): An internal comment, not shown to the other party.
- Customer PO (`customer_po`, text): The customer's purchase order number.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assignedToUser": {
      "id": 1,
      "name": "example"
    },
    "billing": {},
    "channel": {
      "id": 1,
      "name": "example"
    },
    "closed": true,
    "comment": "example",
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customer": {
      "id": 1,
      "name": "example"
    },
    "customerMessage": "example",
    "customerNotes": "example",
    "customerPO": "example",
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "depositAmount": 1,
    "depositPercent": 1,
    "discountAmount": 1,
    "discountPercent": 1,
    "discountTaxable": true,
    "dropship": true,
    "exchangeRate": 1,
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "altAmount": "example",
        "amount": 1,
        "bin": {},
        "class": {},
        "cost": 1,
        "description": "example",
        "dueDate": "example",
        "id": 1,
        "invoiced": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "listPrice": 1,
        "lot": {},
        "margin": 1,
        "percentDiscount": 1,
        "picked": 1,
        "produced": "example",
        "quantity": 1,
        "returned": "example",
        "serials": [
          {}
        ],
        "shipped": 1,
        "tax": {},
        "unitPrice": 1,
        "uom": {},
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "linkedTransaction": {},
    "location": {
      "id": 1,
      "name": "example"
    },
    "number": "example",
    "orderStage": {
      "id": 1,
      "name": "example"
    },
    "priority": {
      "id": 1,
      "name": "example"
    },
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "shippingAmount": 1,
    "shippingTaxable": true,
    "starred": 1,
    "statusLink": "example",
    "statusMessage": "example",
    "subtotal": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxAmount": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "taxPercent": 1,
    "terms": {
      "id": 1,
      "name": "example"
    },
    "total": 1
  }
}
```

### Create vendor

Add a vendor.

**Inputs**

- Name (`name`, text, required): The name the vendor is looked up by.
- Company name (`company_name`, text): The vendor's company name.
- Email (`email`, text): The vendor's email address.
- Phone (`phone`, text): The vendor's phone number.
- Account number (`account_number`, text): Your account number with the vendor.
- Notes (`notes`, text): Notes about the vendor.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "accountNumber": "example",
    "address": {},
    "altAddresses": [
      {}
    ],
    "altPhone": "example",
    "archived": true,
    "companyName": "example",
    "contact": {},
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "email": "example",
    "fax": "example",
    "id": 1,
    "mobile": "example",
    "name": "example",
    "notes": "example",
    "phone": "example",
    "showOnForms": true,
    "starred": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "terms": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Delete customer

Delete a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

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

### Delete item

Delete a item.

**Inputs**

- Item (`item_id`, number, required): The item's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

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

### Delete purchase order

Delete a purchase order.

**Inputs**

- Purchase order (`purchase_order_id`, number, required): The purchase order's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

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

### Delete sales order

Delete a sales order.

**Inputs**

- Sales order (`sales_order_id`, number, required): The sales order's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

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

### Delete vendor

Delete a vendor.

**Inputs**

- Vendor (`vendor_id`, number, required): The vendor's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

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

### Get customer

Get one customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "altAddresses": [
      {}
    ],
    "altPhone": "example",
    "archived": true,
    "billWithParent": true,
    "billing": {},
    "businessLicense": "example",
    "companyName": "example",
    "contact": {},
    "contractorNumber": "example",
    "creditHold": true,
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customerType": {
      "id": 1,
      "name": "example"
    },
    "email": "example",
    "fax": "example",
    "foundUsVia": "example",
    "fullname": "example",
    "hasChildren": true,
    "id": 1,
    "name": "example",
    "notes": "example",
    "parent": {
      "id": 1,
      "name": "example"
    },
    "paymentMethod": {
      "id": 1,
      "name": "example"
    },
    "phone": "example",
    "priceTier": {
      "id": 1,
      "name": "example"
    },
    "resaleNumber": "example",
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "starred": 1,
    "sublevel": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "tax": {},
    "taxExemptReasonId": "example",
    "terms": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Get invoice

Get one invoice with its lines and totals.

**Inputs**

- Invoice (`invoice_id`, number, required): The invoice's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "billing": {},
    "channel": {
      "id": 1,
      "name": "example"
    },
    "closed": true,
    "comment": "example",
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customer": {
      "id": 1,
      "name": "example"
    },
    "customerMessage": "example",
    "customerNotes": "example",
    "customerPO": "example",
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "depositAmount": 1,
    "depositPercent": 1,
    "discountAmount": 1,
    "discountPercent": 1,
    "discountTaxable": true,
    "dropship": true,
    "dueDate": "example",
    "exchangeRate": 1,
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "amount": 1,
        "class": {},
        "cost": 1,
        "description": "example",
        "id": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "listprice": 1,
        "margin": 1,
        "percentdiscount": 1,
        "quantity": 1,
        "tax": {},
        "unitprice": 1,
        "uom": {},
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "number": "example",
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipDate": "example",
    "shipMethod": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "shippingAmount": 1,
    "shippingTaxable": true,
    "starred": 1,
    "statusLink": "example",
    "subTotal": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxAmount": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "taxPercent": 1,
    "terms": {
      "id": 1,
      "name": "example"
    },
    "total": 1,
    "trackingNumber": "example"
  }
}
```

### Get item

Get one item.

**Inputs**

- Item (`item_id`, number, required): The item's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "alwaysShippable": true,
    "archived": true,
    "assetAccount": {
      "id": 1,
      "name": "example"
    },
    "available": 1,
    "barcode": "example",
    "basePurchaseCost": 1,
    "baseSalesPrice": 1,
    "bin": {
      "id": 1,
      "name": "example"
    },
    "category": {
      "id": 1,
      "name": "example"
    },
    "class": {
      "id": 1,
      "name": "example"
    },
    "cogsAccount": {
      "id": 1,
      "name": "example"
    },
    "commissionAmount": 1,
    "commissionExempt": true,
    "commissionRate": 1,
    "costBasis": 1,
    "customFields": [
      {}
    ],
    "customerPartNumber": "example",
    "description": "example",
    "expenseAccount": {
      "id": 1,
      "name": "example"
    },
    "fullname": "example",
    "hasImage": true,
    "id": 1,
    "incomeAccount": {
      "id": 1,
      "name": "example"
    },
    "leadTime": 1,
    "lotTracking": true,
    "markupPercent": 1,
    "maxStock": 1,
    "minimumPrice": 1,
    "name": "example",
    "notes": "example",
    "onPO": 1,
    "onRMA": 1,
    "onSO": 1,
    "onSR": 1,
    "onWO": 1,
    "onhand": 1,
    "priceTiers": [
      {}
    ],
    "purchaseCost": 1,
    "purchaseDescription": "example",
    "purchaseTaxCode": {
      "id": 1,
      "name": "example"
    },
    "rented": 1,
    "reorderPoint": 1,
    "salesPrice": 1,
    "salesTaxCode": {
      "id": 1,
      "name": "example"
    },
    "serialTracking": true,
    "showOnManufacturingForms": true,
    "showOnPurchasingForms": true,
    "showOnSalesForms": true,
    "sku": "example",
    "starred": 1,
    "sublevel": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "tags": "example",
    "taxable": true,
    "type": "example",
    "uoms": [
      {}
    ],
    "updateBigCommerce": true,
    "updateShopify": true,
    "url": "example",
    "useMarkup": true,
    "vendor": {
      "id": 1,
      "name": "example"
    },
    "vendorPartNumber": "example",
    "volume": 1,
    "warranty": "example",
    "weight": 1,
    "willSync": true
  }
}
```

### Get purchase order

Get one purchase order.

**Inputs**

- Purchase order (`purchase_order_id`, number, required): The purchase order's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assignedToUser": {
      "id": 1,
      "name": "example"
    },
    "billing": {},
    "blanketPO": true,
    "closed": true,
    "comment": "example",
    "confirmed": true,
    "contractManufacturing": true,
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "depositAmount": 1,
    "depositPercent": 1,
    "dropShip": true,
    "exchangeRate": 1,
    "expectedDate": "example",
    "expectedShip": "example",
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "amount": 1,
        "bin": {},
        "class": {},
        "customer": {},
        "description": "example",
        "id": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "lot": {},
        "lotExpiration": "example",
        "quantity": 1,
        "received": 1,
        "serials": [
          {}
        ],
        "tax": {},
        "unitPrice": 1,
        "uom": {},
        "vendorPartNumber": "example",
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "linkedTransaction": {},
    "location": {
      "id": 1,
      "name": "example"
    },
    "number": "example",
    "pendingApproval": true,
    "shipping": {},
    "shippingMethod": {
      "id": 1,
      "name": "example"
    },
    "starred": 1,
    "subTotal": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxAmount": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "terms": {
      "id": 1,
      "name": "example"
    },
    "total": 1,
    "vendor": {
      "id": 1,
      "name": "example"
    },
    "vendorMessage": "example",
    "vendorNotes": "example"
  }
}
```

### Get sales order

Get one sales order.

**Inputs**

- Sales order (`sales_order_id`, number, required): The sales order's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assignedToUser": {
      "id": 1,
      "name": "example"
    },
    "billing": {},
    "channel": {
      "id": 1,
      "name": "example"
    },
    "closed": true,
    "comment": "example",
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customer": {
      "id": 1,
      "name": "example"
    },
    "customerMessage": "example",
    "customerNotes": "example",
    "customerPO": "example",
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "depositAmount": 1,
    "depositPercent": 1,
    "discountAmount": 1,
    "discountPercent": 1,
    "discountTaxable": true,
    "dropship": true,
    "exchangeRate": 1,
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "altAmount": "example",
        "amount": 1,
        "bin": {},
        "class": {},
        "cost": 1,
        "description": "example",
        "dueDate": "example",
        "id": 1,
        "invoiced": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "listPrice": 1,
        "lot": {},
        "margin": 1,
        "percentDiscount": 1,
        "picked": 1,
        "produced": "example",
        "quantity": 1,
        "returned": "example",
        "serials": [
          {}
        ],
        "shipped": 1,
        "tax": {},
        "unitPrice": 1,
        "uom": {},
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "linkedTransaction": {},
    "location": {
      "id": 1,
      "name": "example"
    },
    "number": "example",
    "orderStage": {
      "id": 1,
      "name": "example"
    },
    "priority": {
      "id": 1,
      "name": "example"
    },
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "shippingAmount": 1,
    "shippingTaxable": true,
    "starred": 1,
    "statusLink": "example",
    "statusMessage": "example",
    "subtotal": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxAmount": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "taxPercent": 1,
    "terms": {
      "id": 1,
      "name": "example"
    },
    "total": 1
  }
}
```

### Get shipment

Get one shipment with its lines and tracking link.

**Inputs**

- Shipment (`shipment_id`, number, required): The shipment's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assignedToUser": {
      "id": 1,
      "name": "example"
    },
    "billing": {},
    "channel": {
      "id": 1,
      "name": "example"
    },
    "comment": "example",
    "createBillForShippingAmount": true,
    "customFields": [
      {}
    ],
    "customer": {
      "id": 1,
      "name": "example"
    },
    "customerMessage": "example",
    "customerNotes": "example",
    "customerPO": "example",
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "forceToShipStation": true,
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "altAmount": "example",
        "amount": "example",
        "bin": {},
        "class": {},
        "cost": "example",
        "description": "example",
        "dueDate": "example",
        "id": 1,
        "invoiced": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "listPrice": "example",
        "lot": {},
        "margin": "example",
        "percentDiscount": "example",
        "picked": "example",
        "produced": "example",
        "quantity": 1,
        "returned": "example",
        "serials": [
          {}
        ],
        "shipped": "example",
        "tax": "example",
        "unitPrice": "example",
        "uom": {},
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "linkedTransaction": "example",
    "location": {
      "id": 1,
      "name": "example"
    },
    "number": "example",
    "orderStage": "example",
    "priority": {
      "id": 1,
      "name": "example"
    },
    "shipBy": "example",
    "shipping": {},
    "shippingAmount": 1,
    "shippingMethod": {
      "id": 1,
      "name": "example"
    },
    "starred": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxCode": "example",
    "total": "example",
    "trackingLink": "example"
  }
}
```

### Get vendor

Get one vendor.

**Inputs**

- Vendor (`vendor_id`, number, required): The vendor's ID.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "accountNumber": "example",
    "address": {},
    "altAddresses": [
      {}
    ],
    "altPhone": "example",
    "archived": true,
    "companyName": "example",
    "contact": {},
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "email": "example",
    "fax": "example",
    "id": 1,
    "mobile": "example",
    "name": "example",
    "notes": "example",
    "phone": "example",
    "showOnForms": true,
    "starred": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "terms": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### List customers

List customers, searched by name, email or text.

**Inputs**

- Search (`query`, text): Only records matching this text in name or notes.
- Name (`name`, text): Only customers whose name matches this.
- Email (`email`, text): Only customers with this email address.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "altAddresses": [
          {}
        ],
        "altPhone": "example",
        "archived": true,
        "billWithParent": true,
        "billing": {},
        "businessLicense": "example",
        "companyName": "example",
        "contact": {},
        "contractorNumber": "example",
        "creditHold": true,
        "currency": {
          "id": 1,
          "name": "example"
        },
        "customFields": [
          {}
        ],
        "customerType": {
          "id": 1,
          "name": "example"
        },
        "email": "example",
        "fax": "example",
        "foundUsVia": "example",
        "fullname": "example",
        "hasChildren": true,
        "id": 1,
        "name": "example",
        "notes": "example",
        "parent": {
          "id": 1,
          "name": "example"
        },
        "paymentMethod": {
          "id": 1,
          "name": "example"
        },
        "phone": "example",
        "priceTier": {
          "id": 1,
          "name": "example"
        },
        "resaleNumber": "example",
        "salesRep": {
          "id": 1,
          "name": "example"
        },
        "shipping": {},
        "starred": 1,
        "sublevel": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "tax": {},
        "taxExemptReasonId": "example",
        "terms": {
          "id": 1,
          "name": "example"
        }
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List invoices

List invoices, filtered by status, date or text.

**Inputs**

- Status (`status`, text): Only open or only closed invoices. One of: `open`, `closed`.
- From (`date_from`, date and time): Only invoices dated at or after this time.
- To (`date_to`, date and time): Only invoices dated at or before this time.
- Search (`query`, text): Only records matching this text in number, comment or customer PO.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "archived": true,
        "billing": {},
        "channel": {
          "id": 1,
          "name": "example"
        },
        "closed": true,
        "comment": "example",
        "currency": {
          "id": 1,
          "name": "example"
        },
        "customFields": [
          {}
        ],
        "customer": {
          "id": 1,
          "name": "example"
        },
        "customerMessage": "example",
        "customerNotes": "example",
        "customerPO": "example",
        "date": "example",
        "department": {
          "id": 1,
          "name": "example"
        },
        "depositAmount": 1,
        "depositPercent": 1,
        "discountAmount": 1,
        "discountPercent": 1,
        "discountTaxable": true,
        "dropship": true,
        "dueDate": "example",
        "exchangeRate": 1,
        "hasSignature": "example",
        "id": 1,
        "lines": [
          {
            "amount": 1,
            "class": {},
            "cost": 1,
            "description": "example",
            "id": 1,
            "item": {},
            "job": {},
            "lineNumber": 1,
            "linkedTransaction": {},
            "listprice": 1,
            "margin": 1,
            "percentdiscount": 1,
            "quantity": 1,
            "tax": {},
            "unitprice": 1,
            "uom": {},
            "volume": 1,
            "volumeunit": "example",
            "weight": 1,
            "weightunit": "example",
            "workcenter": {}
          }
        ],
        "number": "example",
        "salesRep": {
          "id": 1,
          "name": "example"
        },
        "shipDate": "example",
        "shipMethod": {
          "id": 1,
          "name": "example"
        },
        "shipping": {},
        "shippingAmount": 1,
        "shippingTaxable": true,
        "starred": 1,
        "statusLink": "example",
        "subTotal": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "taxAmount": 1,
        "taxCode": {
          "id": 1,
          "name": "example"
        },
        "taxPercent": 1,
        "terms": {
          "id": 1,
          "name": "example"
        },
        "total": 1,
        "trackingNumber": "example"
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List items

List the items SOS Inventory tracks, with stock on hand, available and on order.

**Inputs**

- Search (`query`, text): Only records matching this text in name, description, notes or barcode.
- SKU (`sku`, text): Only the item with this SKU.
- Type (`type`, text): Only items of this type, such as Inventory Item.
- Category (`category`, text): Only items in the category with this name.
- Location (`location`, text): Show stock at the location with this name.
- Tags (`tags`, text): Only items with these tags, separated by commas.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "alwaysShippable": true,
        "archived": true,
        "assetAccount": {
          "id": 1,
          "name": "example"
        },
        "available": 1,
        "barcode": "example",
        "basePurchaseCost": 1,
        "baseSalesPrice": 1,
        "bin": {
          "id": 1,
          "name": "example"
        },
        "category": {
          "id": 1,
          "name": "example"
        },
        "class": {
          "id": 1,
          "name": "example"
        },
        "cogsAccount": {
          "id": 1,
          "name": "example"
        },
        "commissionAmount": 1,
        "commissionExempt": true,
        "commissionRate": 1,
        "costBasis": 1,
        "customFields": [
          {}
        ],
        "customerPartNumber": "example",
        "description": "example",
        "expenseAccount": {
          "id": 1,
          "name": "example"
        },
        "fullname": "example",
        "hasImage": true,
        "id": 1,
        "incomeAccount": {
          "id": 1,
          "name": "example"
        },
        "leadTime": 1,
        "lotTracking": true,
        "markupPercent": 1,
        "maxStock": 1,
        "minimumPrice": 1,
        "name": "example",
        "notes": "example",
        "onPO": 1,
        "onRMA": 1,
        "onSO": 1,
        "onSR": 1,
        "onWO": 1,
        "onhand": 1,
        "priceTiers": [
          {}
        ],
        "purchaseCost": 1,
        "purchaseDescription": "example",
        "purchaseTaxCode": {
          "id": 1,
          "name": "example"
        },
        "rented": 1,
        "reorderPoint": 1,
        "salesPrice": 1,
        "salesTaxCode": {
          "id": 1,
          "name": "example"
        },
        "serialTracking": true,
        "showOnManufacturingForms": true,
        "showOnPurchasingForms": true,
        "showOnSalesForms": true,
        "sku": "example",
        "starred": 1,
        "sublevel": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "tags": "example",
        "taxable": true,
        "type": "example",
        "uoms": [
          {}
        ],
        "updateBigCommerce": true,
        "updateShopify": true,
        "url": "example",
        "useMarkup": true,
        "vendor": {
          "id": 1,
          "name": "example"
        },
        "vendorPartNumber": "example",
        "volume": 1,
        "warranty": "example",
        "weight": 1,
        "willSync": true
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List locations

List the warehouses and other places stock is kept.

**Inputs**

- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List purchase orders

List purchase orders, filtered by status, date or text.

**Inputs**

- Status (`status`, text): Only open or only closed purchase orders. One of: `open`, `closed`.
- From (`date_from`, date and time): Only purchase orders dated at or after this time.
- To (`date_to`, date and time): Only purchase orders dated at or before this time.
- Search (`query`, text): Only records matching this text in number or comment.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "archived": true,
        "assignedToUser": {
          "id": 1,
          "name": "example"
        },
        "billing": {},
        "blanketPO": true,
        "closed": true,
        "comment": "example",
        "confirmed": true,
        "contractManufacturing": true,
        "currency": {
          "id": 1,
          "name": "example"
        },
        "customFields": [
          {}
        ],
        "date": "example",
        "department": {
          "id": 1,
          "name": "example"
        },
        "depositAmount": 1,
        "depositPercent": 1,
        "dropShip": true,
        "exchangeRate": 1,
        "expectedDate": "example",
        "expectedShip": "example",
        "hasSignature": "example",
        "id": 1,
        "lines": [
          {
            "amount": 1,
            "bin": {},
            "class": {},
            "customer": {},
            "description": "example",
            "id": 1,
            "item": {},
            "job": {},
            "lineNumber": 1,
            "linkedTransaction": {},
            "lot": {},
            "lotExpiration": "example",
            "quantity": 1,
            "received": 1,
            "serials": [
              {}
            ],
            "tax": {},
            "unitPrice": 1,
            "uom": {},
            "vendorPartNumber": "example",
            "volume": 1,
            "volumeunit": "example",
            "weight": 1,
            "weightunit": "example",
            "workcenter": {}
          }
        ],
        "linkedTransaction": {},
        "location": {
          "id": 1,
          "name": "example"
        },
        "number": "example",
        "pendingApproval": true,
        "shipping": {},
        "shippingMethod": {
          "id": 1,
          "name": "example"
        },
        "starred": 1,
        "subTotal": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "taxAmount": 1,
        "taxCode": {
          "id": 1,
          "name": "example"
        },
        "terms": {
          "id": 1,
          "name": "example"
        },
        "total": 1,
        "vendor": {
          "id": 1,
          "name": "example"
        },
        "vendorMessage": "example",
        "vendorNotes": "example"
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List sales orders

List sales orders, filtered by status, date, location, channel or text.

**Inputs**

- Status (`status`, text): Only open or only closed sales orders. One of: `open`, `closed`.
- From (`date_from`, date and time): Only sales orders dated at or after this time.
- To (`date_to`, date and time): Only sales orders dated at or before this time.
- Search (`query`, text): Only records matching this text in number, comment or customer PO.
- Location (`location`, text): Only orders from the location with this name.
- Channel (`channel`, text): Only orders from the channel with this name.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "archived": true,
        "assignedToUser": {
          "id": 1,
          "name": "example"
        },
        "billing": {},
        "channel": {
          "id": 1,
          "name": "example"
        },
        "closed": true,
        "comment": "example",
        "currency": {
          "id": 1,
          "name": "example"
        },
        "customFields": [
          {}
        ],
        "customer": {
          "id": 1,
          "name": "example"
        },
        "customerMessage": "example",
        "customerNotes": "example",
        "customerPO": "example",
        "date": "example",
        "department": {
          "id": 1,
          "name": "example"
        },
        "depositAmount": 1,
        "depositPercent": 1,
        "discountAmount": 1,
        "discountPercent": 1,
        "discountTaxable": true,
        "dropship": true,
        "exchangeRate": 1,
        "hasSignature": "example",
        "id": 1,
        "lines": [
          {
            "altAmount": "example",
            "amount": 1,
            "bin": {},
            "class": {},
            "cost": 1,
            "description": "example",
            "dueDate": "example",
            "id": 1,
            "invoiced": 1,
            "item": {},
            "job": {},
            "lineNumber": 1,
            "linkedTransaction": {},
            "listPrice": 1,
            "lot": {},
            "margin": 1,
            "percentDiscount": 1,
            "picked": 1,
            "produced": "example",
            "quantity": 1,
            "returned": "example",
            "serials": [
              {}
            ],
            "shipped": 1,
            "tax": {},
            "unitPrice": 1,
            "uom": {},
            "volume": 1,
            "volumeunit": "example",
            "weight": 1,
            "weightunit": "example",
            "workcenter": {}
          }
        ],
        "linkedTransaction": {},
        "location": {
          "id": 1,
          "name": "example"
        },
        "number": "example",
        "orderStage": {
          "id": 1,
          "name": "example"
        },
        "priority": {
          "id": 1,
          "name": "example"
        },
        "salesRep": {
          "id": 1,
          "name": "example"
        },
        "shipping": {},
        "shippingAmount": 1,
        "shippingTaxable": true,
        "starred": 1,
        "statusLink": "example",
        "statusMessage": "example",
        "subtotal": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "taxAmount": 1,
        "taxCode": {
          "id": 1,
          "name": "example"
        },
        "taxPercent": 1,
        "terms": {
          "id": 1,
          "name": "example"
        },
        "total": 1
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List shipments

List shipments, filtered by customer, location, date or text.

**Inputs**

- Customer (`customer_id`, number): Only shipments to this customer.
- Location (`location`, text): Only shipments from the location with this name.
- From (`date_from`, date and time): Only shipments dated at or after this time.
- To (`date_to`, date and time): Only shipments dated at or before this time.
- Search (`query`, text): Only records matching this text in number or comment.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "archived": true,
        "assignedToUser": {
          "id": 1,
          "name": "example"
        },
        "billing": {},
        "channel": {
          "id": 1,
          "name": "example"
        },
        "comment": "example",
        "createBillForShippingAmount": true,
        "customFields": [
          {}
        ],
        "customer": {
          "id": 1,
          "name": "example"
        },
        "customerMessage": "example",
        "customerNotes": "example",
        "customerPO": "example",
        "date": "example",
        "department": {
          "id": 1,
          "name": "example"
        },
        "forceToShipStation": true,
        "hasSignature": "example",
        "id": 1,
        "lines": [
          {
            "altAmount": "example",
            "amount": "example",
            "bin": {},
            "class": {},
            "cost": "example",
            "description": "example",
            "dueDate": "example",
            "id": 1,
            "invoiced": 1,
            "item": {},
            "job": {},
            "lineNumber": 1,
            "linkedTransaction": {},
            "listPrice": "example",
            "lot": {},
            "margin": "example",
            "percentDiscount": "example",
            "picked": "example",
            "produced": "example",
            "quantity": 1,
            "returned": "example",
            "serials": [
              {}
            ],
            "shipped": "example",
            "tax": "example",
            "unitPrice": "example",
            "uom": {},
            "volume": 1,
            "volumeunit": "example",
            "weight": 1,
            "weightunit": "example",
            "workcenter": {}
          }
        ],
        "linkedTransaction": "example",
        "location": {
          "id": 1,
          "name": "example"
        },
        "number": "example",
        "orderStage": "example",
        "priority": {
          "id": 1,
          "name": "example"
        },
        "shipBy": "example",
        "shipping": {},
        "shippingAmount": 1,
        "shippingMethod": {
          "id": 1,
          "name": "example"
        },
        "starred": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "taxCode": "example",
        "total": "example",
        "trackingLink": "example"
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### List vendors

List the vendors items are bought from.

**Inputs**

- Search (`query`, text): Only records matching this text in name or notes.
- Created since (`created_since`, date and time): Only records added at or after this time.
- Updated since (`updated_since`, date and time): Only records changed at or after this time.
- Start at row (`start`, number): The row to start at, from 1. To get the second page of 200, enter 201. At least 1.
- Limit (`maxresults`, number): How many records to return, up to 200. From 1 to 200.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "accountNumber": "example",
        "address": {},
        "altAddresses": [
          {}
        ],
        "altPhone": "example",
        "archived": true,
        "companyName": "example",
        "contact": {},
        "currency": {
          "id": 1,
          "name": "example"
        },
        "customFields": [
          {}
        ],
        "email": "example",
        "fax": "example",
        "id": 1,
        "mobile": "example",
        "name": "example",
        "notes": "example",
        "phone": "example",
        "showOnForms": true,
        "starred": 1,
        "summaryOnly": true,
        "syncToken": 1,
        "taxCode": {
          "id": 1,
          "name": "example"
        },
        "terms": {
          "id": 1,
          "name": "example"
        }
      }
    ],
    "message": "example",
    "status": "example",
    "totalCount": 1
  }
}
```

### Update customer

Change a customer's details. Fields left empty keep their value.

**Inputs**

- Customer (`customer_id`, number, required): The customer's ID.
- Name (`name`, text): The name the customer is looked up by.
- Company name (`company_name`, text): The customer's company name.
- Email (`email`, text): The customer's email address.
- Phone (`phone`, text): The customer's phone number.
- Contact first name (`contact_first_name`, text): The first name of the person to contact.
- Contact last name (`contact_last_name`, text): The last name of the person to contact.
- Notes (`notes`, text): Internal notes about the customer.
- Credit hold (`credit_hold`, true/false): Whether the customer is on credit hold.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "altAddresses": [
      {}
    ],
    "altPhone": "example",
    "archived": true,
    "billWithParent": true,
    "billing": {},
    "businessLicense": "example",
    "companyName": "example",
    "contact": {},
    "contractorNumber": "example",
    "creditHold": true,
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customerType": {
      "id": 1,
      "name": "example"
    },
    "email": "example",
    "fax": "example",
    "foundUsVia": "example",
    "fullname": "example",
    "hasChildren": true,
    "id": 1,
    "name": "example",
    "notes": "example",
    "parent": {
      "id": 1,
      "name": "example"
    },
    "paymentMethod": {
      "id": 1,
      "name": "example"
    },
    "phone": "example",
    "priceTier": {
      "id": 1,
      "name": "example"
    },
    "resaleNumber": "example",
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "starred": 1,
    "sublevel": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "tax": {},
    "taxExemptReasonId": "example",
    "terms": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Update item

Change an item's details. Fields left empty keep their value.

**Inputs**

- Item (`item_id`, number, required): The item's ID.
- Name (`name`, text): The item's name.
- Description (`description`, text): The item's description on sales forms.
- SKU (`sku`, text): The item's stock keeping unit.
- Type (`type`, text): The kind of item, such as Inventory Item, Non-inventory Item or Service.
- Barcode (`barcode`, text): The digits of the item's barcode.
- Sales price (`base_sales_price`, number): The price the item sells for. At least 0.
- Purchase cost (`base_purchase_cost`, number): What the item costs to buy. At least 0.
- Reorder point (`reorder_point`, number): The stock level at which to reorder. At least 0.
- Category (`category`, text): The name of the item's category.
- Vendor (`vendor_id`, number): The vendor the item is bought from.
- Tags (`tags`, text): Tags, separated by commas.
- Notes (`notes`, text): Notes about the item.
- Taxable (`taxable`, true/false): Whether the item is taxable.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "alwaysShippable": true,
    "archived": true,
    "assetAccount": {
      "id": 1,
      "name": "example"
    },
    "available": 1,
    "barcode": "example",
    "basePurchaseCost": 1,
    "baseSalesPrice": 1,
    "bin": {
      "id": 1,
      "name": "example"
    },
    "category": {
      "id": 1,
      "name": "example"
    },
    "class": {
      "id": 1,
      "name": "example"
    },
    "cogsAccount": {
      "id": 1,
      "name": "example"
    },
    "commissionAmount": 1,
    "commissionExempt": true,
    "commissionRate": 1,
    "costBasis": 1,
    "customFields": [
      {}
    ],
    "customerPartNumber": "example",
    "description": "example",
    "expenseAccount": {
      "id": 1,
      "name": "example"
    },
    "fullname": "example",
    "hasImage": true,
    "id": 1,
    "incomeAccount": {
      "id": 1,
      "name": "example"
    },
    "leadTime": 1,
    "lotTracking": true,
    "markupPercent": 1,
    "maxStock": 1,
    "minimumPrice": 1,
    "name": "example",
    "notes": "example",
    "onPO": 1,
    "onRMA": 1,
    "onSO": 1,
    "onSR": 1,
    "onWO": 1,
    "onhand": 1,
    "priceTiers": [
      {}
    ],
    "purchaseCost": 1,
    "purchaseDescription": "example",
    "purchaseTaxCode": {
      "id": 1,
      "name": "example"
    },
    "rented": 1,
    "reorderPoint": 1,
    "salesPrice": 1,
    "salesTaxCode": {
      "id": 1,
      "name": "example"
    },
    "serialTracking": true,
    "showOnManufacturingForms": true,
    "showOnPurchasingForms": true,
    "showOnSalesForms": true,
    "sku": "example",
    "starred": 1,
    "sublevel": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "tags": "example",
    "taxable": true,
    "type": "example",
    "uoms": [
      {}
    ],
    "updateBigCommerce": true,
    "updateShopify": true,
    "url": "example",
    "useMarkup": true,
    "vendor": {
      "id": 1,
      "name": "example"
    },
    "vendorPartNumber": "example",
    "volume": 1,
    "warranty": "example",
    "weight": 1,
    "willSync": true
  }
}
```

### Update sales order

Change a sales order's comment, messages or customer PO, or close it.

**Inputs**

- Sales order (`sales_order_id`, number, required): The sales order's ID.
- Comment (`comment`, text): An internal comment, not shown to the customer.
- Customer PO (`customer_po`, text): The customer's purchase order number.
- Status message (`status_message`, text): A status message for the order.
- Customer message (`customer_message`, text): A message to the customer on the order.
- Closed (`closed`, true/false): Whether the order is closed.

**Outputs**

- `data` (object): The response from SOS Inventory.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assignedToUser": {
      "id": 1,
      "name": "example"
    },
    "billing": {},
    "channel": {
      "id": 1,
      "name": "example"
    },
    "closed": true,
    "comment": "example",
    "currency": {
      "id": 1,
      "name": "example"
    },
    "customFields": [
      {}
    ],
    "customer": {
      "id": 1,
      "name": "example"
    },
    "customerMessage": "example",
    "customerNotes": "example",
    "customerPO": "example",
    "date": "example",
    "department": {
      "id": 1,
      "name": "example"
    },
    "depositAmount": 1,
    "depositPercent": 1,
    "discountAmount": 1,
    "discountPercent": 1,
    "discountTaxable": true,
    "dropship": true,
    "exchangeRate": 1,
    "hasSignature": "example",
    "id": 1,
    "lines": [
      {
        "altAmount": "example",
        "amount": 1,
        "bin": {},
        "class": {},
        "cost": 1,
        "description": "example",
        "dueDate": "example",
        "id": 1,
        "invoiced": 1,
        "item": {},
        "job": {},
        "lineNumber": 1,
        "linkedTransaction": {},
        "listPrice": 1,
        "lot": {},
        "margin": 1,
        "percentDiscount": 1,
        "picked": 1,
        "produced": "example",
        "quantity": 1,
        "returned": "example",
        "serials": [
          {}
        ],
        "shipped": 1,
        "tax": {},
        "unitPrice": 1,
        "uom": {},
        "volume": 1,
        "volumeunit": "example",
        "weight": 1,
        "weightunit": "example",
        "workcenter": {}
      }
    ],
    "linkedTransaction": {},
    "location": {
      "id": 1,
      "name": "example"
    },
    "number": "example",
    "orderStage": {
      "id": 1,
      "name": "example"
    },
    "priority": {
      "id": 1,
      "name": "example"
    },
    "salesRep": {
      "id": 1,
      "name": "example"
    },
    "shipping": {},
    "shippingAmount": 1,
    "shippingTaxable": true,
    "starred": 1,
    "statusLink": "example",
    "statusMessage": "example",
    "subtotal": 1,
    "summaryOnly": true,
    "syncToken": 1,
    "taxAmount": 1,
    "taxCode": {
      "id": 1,
      "name": "example"
    },
    "taxPercent": 1,
    "terms": {
      "id": 1,
      "name": "example"
    },
    "total": 1
  }
}
```
