# Katana

> Manage Katana customers, products, materials, sales orders, manufacturing orders, suppliers and stock.

App · 27 actions. Web page: https://docs.lodol.com/docs/integrations/katana

## Actions

### Create a customer

Create a customer.

**Inputs**

- Name (`name`, text, required): The customer's display name.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Company (`company`, text): The customer's company.
- Email (`email`, text): The customer's email address.
- Phone (`phone`, text): The customer's phone number.
- Currency (`currency`, text): The customer's currency, as a three-letter ISO 4217 code such as USD.
- Reference ID (`reference_id`, text): Your own reference for the customer, up to 100 characters.
- Category (`category`, text): A category to group the customer under, up to 100 characters.
- Discount rate (`discount_rate`, number): The customer's default discount, as a percentage from 0 to 100. From 0 to 100.
- Comment (`comment`, text): A note about the customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "addresses": [],
    "category": "example",
    "comment": "example",
    "company": "example",
    "created_at": "example",
    "currency": "example",
    "custom_fields": {},
    "default_billing_id": 1,
    "default_shipping_id": 1,
    "deleted_at": "example",
    "discount_rate": 1.0,
    "email": "example",
    "first_name": "example",
    "id": 1,
    "last_name": "example",
    "name": "example",
    "phone": "example",
    "reference_id": "example",
    "updated_at": "example"
  }
}
```

### Create a manufacturing order

Create a manufacturing order. Katana adds the recipe and operation rows from the product.

**Inputs**

- Variant (`variant_id`, number, required): The product variant to make. At least 1.
- Location (`location_id`, number, required): The location where it will be made. At least 1.
- Planned quantity (`planned_quantity`, number, required): How many to make. At least 0.
- Order no (`order_no`, text): The order number. Leave blank to have Katana number it.
- Production deadline date (`production_deadline_date`, date and time): When it must be made by. Only used when automatic deadlines are off for the location.
- Additional info (`additional_info`, text): Notes for the order.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "actual_quantity": "example",
    "additional_info": "example",
    "batch_transactions": [],
    "created_at": "example",
    "custom_fields": {},
    "deleted_at": "example",
    "done_date": "example",
    "id": 1,
    "ingredient_availability": "example",
    "is_linked_to_sales_order": false,
    "location_id": 1,
    "material_cost": 1.0,
    "operations_cost": 1.0,
    "order_created_date": "example",
    "order_no": "example",
    "planned_quantity": 1.0,
    "production_deadline_date": "example",
    "sales_order_delivery_deadline": "example",
    "sales_order_id": 1,
    "sales_order_row_id": 1,
    "serial_numbers": [],
    "status": "example",
    "subassemblies_cost": 1.0,
    "total_actual_time": 1.0,
    "total_cost": 1.0,
    "total_planned_time": 1.0,
    "traceability": [],
    "updated_at": "example",
    "variant_id": 1
  }
}
```

### Create a product

Create a product with one variant. Add more variants in Katana.

**Inputs**

- Name (`name`, text, required): The product's name.
- SKU (`sku`, text): The stock keeping unit (SKU) of the product's variant.
- Purchase price (`purchase_price`, number): What one unit costs to buy. At least 0.
- Sales price (`sales_price`, number): What one unit sells for. At least 0.
- Unit of measure (`unit_of_measure`, text): The unit it's counted in, such as pcs or kg, up to 7 characters.
- Category name (`category_name`, text): The category to file it under.
- Default supplier (`default_supplier_id`, number): The supplier you usually buy it from. From 1 to 2147483647.
- Additional info (`additional_info`, text): Extra notes about it.
- Batch tracked (`batch_tracked`, true/false): Whether stock is tracked in batches.
- Is sellable (`is_sellable`, true/false): Whether the product can be sold.
- Is producible (`is_producible`, true/false): Whether you make the product yourself.
- Is purchasable (`is_purchasable`, true/false): Whether you buy the product in. A product must be producible, purchasable or both.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "batch_tracked": false,
    "category_name": "example",
    "configs": [],
    "created_at": "example",
    "custom_field_collection_id": 1,
    "default_supplier_id": 1,
    "id": 1,
    "is_auto_assembly": false,
    "is_producible": false,
    "is_purchasable": false,
    "is_sellable": false,
    "name": "example",
    "operations_in_sequence": false,
    "purchase_uom": "example",
    "purchase_uom_conversion_rate": 1.0,
    "serial_tracked": false,
    "type": "example",
    "uom": "example",
    "updated_at": "example",
    "variants": []
  }
}
```

### Create a sales order

Create a sales order with one row. Add more rows in Katana.

**Inputs**

- Customer (`customer_id`, number, required): The customer the order is for. From 1 to 2147483647.
- Variant (`variant_id`, number, required): The variant being sold. At least 1.
- Quantity (`quantity`, number, required): How many are being sold. At least 0.
- Price per unit (`price_per_unit`, number): The price of one unit. Leave blank to use the variant's sales price. At least 0.
- Order no (`order_no`, text): The order number. Leave blank to have Katana number it.
- Location (`location_id`, number): The location the order ships from. Leave blank for the default sales location. From 1 to 2147483647.
- Status (`status`, text): Not shipped, or Pending to create a quote-like order that doesn't reserve stock yet. One of: `NOT_SHIPPED` (Not shipped), `PENDING`.
- Delivery date (`delivery_date`, date and time): When the order should be delivered.
- Currency (`currency`, text): The order's currency, as a three-letter ISO 4217 code. Leave blank for the customer's.
- Customer ref (`customer_ref`, text): The customer's own reference for the order.
- Additional info (`additional_info`, text): Notes for the order.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "addresses": [],
    "billing_address_id": 1,
    "conversion_date": "example",
    "conversion_rate": 1.0,
    "created_at": "example",
    "currency": "example",
    "custom_fields": {},
    "customer_id": 1,
    "customer_ref": "example",
    "deleted_at": "example",
    "delivery_date": "example",
    "ecommerce_order_id": "example",
    "ecommerce_order_type": "example",
    "ecommerce_store_name": "example",
    "id": 1,
    "ingredient_availability": "example",
    "invoicing_status": "example",
    "location_id": 1,
    "order_created_date": "example",
    "order_no": "example",
    "picked_date": "example",
    "product_availability": "example",
    "production_status": "example",
    "sales_order_rows": [],
    "shipping_address_id": 1,
    "source": "example",
    "status": "example",
    "total": 1.0,
    "total_in_base_currency": 1.0,
    "tracking_carrier": "example",
    "tracking_method": "example",
    "tracking_number": "example",
    "tracking_number_url": "example",
    "updated_at": "example"
  }
}
```

### Delete a customer

Delete a customer.

**Inputs**

- Customer (`customer_id`, number, required): The customer to delete. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete a manufacturing order

Delete a manufacturing order.

**Inputs**

- Manufacturing order (`manufacturing_order_id`, number, required): The manufacturing order to delete. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete a product

Delete a product.

**Inputs**

- Product (`product_id`, number, required): The product to delete. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete a sales order

Delete a sales order.

**Inputs**

- Sales order (`sales_order_id`, number, required): The sales order to delete. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Get a manufacturing order

Get one manufacturing order with its costs, status and traceability.

**Inputs**

- Manufacturing order (`manufacturing_order_id`, number, required): The manufacturing order to get. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "actual_quantity": "example",
    "additional_info": "example",
    "batch_transactions": [],
    "created_at": "example",
    "custom_fields": {},
    "deleted_at": "example",
    "done_date": "example",
    "id": 1,
    "ingredient_availability": "example",
    "is_linked_to_sales_order": false,
    "location_id": 1,
    "material_cost": 1.0,
    "operations_cost": 1.0,
    "order_created_date": "example",
    "order_no": "example",
    "planned_quantity": 1.0,
    "production_deadline_date": "example",
    "sales_order_delivery_deadline": "example",
    "sales_order_id": 1,
    "sales_order_row_id": 1,
    "serial_numbers": [],
    "status": "example",
    "subassemblies_cost": 1.0,
    "total_actual_time": 1.0,
    "total_cost": 1.0,
    "total_planned_time": 1.0,
    "traceability": [],
    "updated_at": "example",
    "variant_id": 1
  }
}
```

### Get a product

Get one product, with its variants.

**Inputs**

- Product (`product_id`, number, required): The product to get. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "archived_at": "example",
    "batch_tracked": false,
    "category_name": "example",
    "configs": [],
    "created_at": "example",
    "custom_field_collection_id": 1,
    "default_supplier_id": 1,
    "id": 1,
    "is_auto_assembly": false,
    "is_producible": false,
    "is_purchasable": false,
    "is_sellable": false,
    "name": "example",
    "operations_in_sequence": false,
    "purchase_uom": "example",
    "purchase_uom_conversion_rate": 1.0,
    "supplier": {
      "comment": "example",
      "created_at": "example",
      "currency": "example",
      "deleted_at": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "type": "example",
    "uom": "example",
    "updated_at": "example",
    "variants": []
  }
}
```

### Get a purchase order

Get one purchase order with its rows.

**Inputs**

- Purchase order (`purchase_order_id`, number, required): The purchase order to get. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "billing_status": "example",
    "created_at": "example",
    "currency": "example",
    "custom_fields": {},
    "default_group_id": 1,
    "deleted_at": "example",
    "entity_type": "example",
    "expected_arrival_date": "example",
    "id": 1,
    "ingredient_availability": "example",
    "ingredient_expected_date": "example",
    "last_document_status": "example",
    "location_id": 1,
    "order_created_date": "example",
    "order_no": "example",
    "purchase_order_rows": [],
    "status": "example",
    "supplier": {
      "comment": "example",
      "created_at": "example",
      "currency": "example",
      "deleted_at": "example",
      "email": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "supplier_id": 1,
    "total": 1.0,
    "total_in_base_currency": 1.0,
    "tracking_location_id": "example",
    "updated_at": "example"
  }
}
```

### Get a sales order

Get one sales order with its rows and addresses.

**Inputs**

- Sales order (`sales_order_id`, number, required): The sales order to get. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "addresses": [],
    "billing_address_id": 1,
    "conversion_date": "example",
    "conversion_rate": 1.0,
    "created_at": "example",
    "currency": "example",
    "custom_fields": {},
    "customer_id": 1,
    "customer_ref": "example",
    "delivery_date": "example",
    "ecommerce_order_id": "example",
    "ecommerce_order_type": "example",
    "ecommerce_store_name": "example",
    "id": 1,
    "ingredient_availability": "example",
    "ingredient_expected_date": "example",
    "invoicing_status": "example",
    "location_id": 1,
    "order_created_date": "example",
    "order_no": "example",
    "picked_date": "example",
    "product_availability": "example",
    "product_expected_date": "example",
    "production_status": "example",
    "sales_order_rows": [],
    "shipping_address_id": 1,
    "shipping_fee": {
      "amount": "example",
      "description": "example",
      "id": 1,
      "sales_order_id": 1,
      "tax_rate_id": 1
    },
    "source": "example",
    "status": "example",
    "total": 1.0,
    "total_in_base_currency": 1.0,
    "tracking_carrier": "example",
    "tracking_method": "example",
    "tracking_number": "example",
    "tracking_number_url": "example",
    "updated_at": "example"
  }
}
```

### Get factory details

Get your factory's name, address, base currency and default locations.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "base_currency_code": "example",
    "default_manufacturing_location_id": 1,
    "default_mo_lead_time": "example",
    "default_po_lead_time": "example",
    "default_purchases_location_id": 1,
    "default_sales_location_id": 1,
    "default_so_delivery_time": "example",
    "display_name": "example",
    "inventory_closing_date": "example",
    "legal_address": {
      "city": "example",
      "country": "example",
      "line_1": "example",
      "line_2": "example",
      "state": "example",
      "zip": "example"
    },
    "legal_name": "example"
  }
}
```

### List customers

List customers, most recent first.

**Inputs**

- Name (`name`, text): Only return customers with this name.
- Email (`email`, text): Only return customers with this email address.
- Company (`company`, text): Only return customers at this company.
- Reference ID (`reference_id`, text): Only return customers with this reference ID.
- Category (`category`, text): Only return customers in this category.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List inventory

List current stock levels, costs and reorder points by variant and location.

**Inputs**

- Location (`location_id`, number): Only return stock at this location. At least 1.
- Variant (`variant_id`, number): Only return stock of this variant. At least 1.
- Include archived (`include_archived`, true/false): Also return stock of archived items.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List locations

List your factory's locations.

**Inputs**

- Name (`name`, text): Only return locations with this name.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List manufacturing orders

List manufacturing orders, most recent first, with their costs and status.

**Inputs**

- Status (`status`, text): Only return orders in this status. One of: `NOT_STARTED` (Not started), `BLOCKED`, `IN_PROGRESS` (In progress), `DONE`.
- Order no (`order_no`, text): Only return the order with this order number.
- Location (`location_id`, number): Only return orders made at this location. At least 1.
- Is linked to sales order (`is_linked_to_sales_order`, true/false): Only return orders that are (yes) or aren't (no) linked to a sales order.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List materials

List materials, with their variants, most recent first.

**Inputs**

- Name (`name`, text): Only return materials with this name.
- Include archived (`include_archived`, true/false): Also return archived materials.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List products

List products, with their variants, most recent first.

**Inputs**

- Name (`name`, text): Only return products with this name.
- Is sellable (`is_sellable`, true/false): Only return products that can (yes) or can't (no) be sold.
- Is producible (`is_producible`, true/false): Only return products that are (yes) or aren't (no) made in-house.
- Include archived (`include_archived`, true/false): Also return archived products.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List purchase orders

List purchase orders, most recent first.

**Inputs**

- Status (`status`, text): Only return orders in this status. One of: `DRAFT`, `NOT_RECEIVED` (Not received), `PARTIALLY_RECEIVED` (Partially received), `RECEIVED`.
- Billing status (`billing_status`, text): Only return orders with this billing status. One of: `BILLED`, `NOT_BILLED` (Not billed), `PARTIALLY_BILLED` (Partially billed).
- Supplier (`supplier_id`, number): Only return orders from this supplier. At least 1.
- Order no (`order_no`, text): Only return the order with this order number.
- Entity type (`entity_type`, text): Only return regular or outsourced purchase orders. One of: `regular`, `outsourced`.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List sales orders

List sales orders, most recent first.

**Inputs**

- Customer (`customer_id`, number): Only return orders for this customer. At least 1.
- Location (`location_id`, number): Only return orders shipped from this location. At least 1.
- Order no (`order_no`, text): Only return the order with this order number.
- Status (`status`, text): Only return orders in this status. One of: `NOT_SHIPPED` (Not shipped), `PENDING`, `READY_FOR_FULFILLMENT` (Ready for fulfillment), `PACKED`, `DELIVERED`.
- Production status (`production_status`, text): Only return orders with this production status. One of: `NOT_STARTED` (Not started), `NONE`, `NOT_APPLICABLE` (Not applicable), `IN_PROGRESS` (In progress), `BLOCKED`, `DONE`.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List suppliers

List suppliers, most recent first.

**Inputs**

- Name (`name`, text): Only return suppliers with this name.
- Email (`email`, text): Only return suppliers with this email address.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List variants

List the sellable and buyable variants of products and materials.

**Inputs**

- Product (`product_id`, number): Only return variants of this product. At least 1.
- Material (`material_id`, number): Only return variants of this material. At least 1.
- SKU (`sku`, text): Only return the variant with this SKU.
- Internal barcode (`internal_barcode`, text): Only return variants with this internal barcode.
- Include archived (`include_archived`, true/false): Also return archived variants.
- Include deleted (`include_deleted`, true/false): Also return deleted records.
- Created at min (`created_at_min`, date and time): Only return records created at or after this time.
- Updated at min (`updated_at_min`, date and time): Only return records changed at or after this time.
- Page (`page`, number): The page of results to return, starting at 1. At least 1.
- Limit (`limit`, number): How many records to return on each page, up to 250. Defaults to 50. From 1 to 250.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### Update a customer

Change a customer's details. Fields left blank keep their current values.

**Inputs**

- Customer (`customer_id`, number, required): The customer to change. At least 1.
- Name (`name`, text): The customer's new display name.
- First name (`first_name`, text): The customer's first name.
- Last name (`last_name`, text): The customer's last name.
- Company (`company`, text): The customer's company.
- Email (`email`, text): The customer's email address.
- Phone (`phone`, text): The customer's phone number.
- Currency (`currency`, text): The customer's currency, as a three-letter ISO 4217 code.
- Reference ID (`reference_id`, text): Your own reference for the customer.
- Category (`category`, text): A category to group the customer under.
- Discount rate (`discount_rate`, number): The customer's default discount, as a percentage from 0 to 100. From 0 to 100.
- Comment (`comment`, text): A note about the customer.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "category": "example",
    "comment": "example",
    "company": "example",
    "created_at": "example",
    "currency": "example",
    "custom_fields": {},
    "default_billing_id": 1,
    "default_shipping_id": 1,
    "deleted_at": "example",
    "discount_rate": 1.0,
    "email": "example",
    "first_name": "example",
    "id": 1,
    "last_name": "example",
    "name": "example",
    "phone": "example",
    "reference_id": "example",
    "updated_at": "example"
  }
}
```

### Update a manufacturing order

Change a manufacturing order's status, quantities, deadline or notes.

**Inputs**

- Manufacturing order (`manufacturing_order_id`, number, required): The manufacturing order to change. At least 1.
- Status (`status`, text): The order's new status. Done completes it and adds what's made to stock. One of: `NOT_STARTED` (Not started), `BLOCKED`, `IN_PROGRESS` (In progress), `DONE`.
- Planned quantity (`planned_quantity`, number): How many to make. At least 0.
- Actual quantity (`actual_quantity`, number): How many were actually made. At least 0.
- Production deadline date (`production_deadline_date`, date and time): When it must be made by.
- Additional info (`additional_info`, text): Notes for the order.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "actual_quantity": "example",
    "additional_info": "example",
    "batch_transactions": [],
    "created_at": "example",
    "custom_fields": {},
    "deleted_at": "example",
    "done_date": "example",
    "id": 1,
    "ingredient_availability": "example",
    "is_linked_to_sales_order": false,
    "location_id": 1,
    "material_cost": 1.0,
    "operations_cost": 1.0,
    "order_created_date": "example",
    "order_no": "example",
    "planned_quantity": 1.0,
    "production_deadline_date": "example",
    "sales_order_delivery_deadline": "example",
    "sales_order_id": 1,
    "sales_order_row_id": 1,
    "serial_numbers": [],
    "status": "example",
    "subassemblies_cost": 1.0,
    "total_actual_time": 1.0,
    "total_cost": 1.0,
    "total_planned_time": 1.0,
    "traceability": [],
    "updated_at": "example",
    "variant_id": 1
  }
}
```

### Update a product

Change a product's details. Fields left blank keep their current values.

**Inputs**

- Product (`product_id`, number, required): The product to change. At least 1.
- Name (`name`, text): The product's new name.
- Unit of measure (`unit_of_measure`, text): The unit it's counted in, such as pcs or kg, up to 7 characters.
- Category name (`category_name`, text): The category to file it under.
- Default supplier (`default_supplier_id`, number): The supplier you usually buy it from. From 1 to 2147483647.
- Additional info (`additional_info`, text): Extra notes about it.
- Batch tracked (`batch_tracked`, true/false): Whether stock is tracked in batches.
- Is archived (`is_archived`, true/false): Archive the product (yes) or restore it (no).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "archived_at": "example",
    "batch_tracked": false,
    "category_name": "example",
    "configs": [],
    "created_at": "example",
    "custom_field_collection_id": 1,
    "default_supplier_id": 1,
    "id": 1,
    "is_auto_assembly": false,
    "is_producible": false,
    "is_purchasable": false,
    "is_sellable": false,
    "name": "example",
    "operations_in_sequence": false,
    "purchase_uom": "example",
    "purchase_uom_conversion_rate": 1.0,
    "serial_tracked": false,
    "type": "example",
    "uom": "example",
    "updated_at": "example",
    "variants": []
  }
}
```

### Update a sales order

Change a sales order's status, delivery date, references or tracking.

**Inputs**

- Sales order (`sales_order_id`, number, required): The sales order to change. At least 1.
- Status (`status`, text): The order's new status. One of: `NOT_SHIPPED` (Not shipped), `PENDING`, `READY_FOR_FULFILLMENT` (Ready for fulfillment), `PACKED`, `DELIVERED`.
- Delivery date (`delivery_date`, date and time): When the order should be delivered.
- Order no (`order_no`, text): The order number. Only changes while the order is not shipped or pending.
- Customer ref (`customer_ref`, text): The customer's own reference for the order.
- Additional info (`additional_info`, text): Notes for the order.
- Tracking number (`tracking_number`, text): The tracking number for the order's next shipment.
- Tracking number URL (`tracking_number_url`, text): A link to track the order's next shipment.
- Tracking carrier (`tracking_carrier`, text): The carrier for the order's next shipment.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "additional_info": "example",
    "addresses": [],
    "billing_address_id": 1,
    "conversion_date": "example",
    "conversion_rate": 1.0,
    "created_at": "example",
    "currency": "example",
    "custom_fields": {},
    "customer_id": 1,
    "customer_ref": "example",
    "deleted_at": "example",
    "delivery_date": "example",
    "ecommerce_order_id": "example",
    "ecommerce_order_type": "example",
    "ecommerce_store_name": "example",
    "id": 1,
    "ingredient_availability": "example",
    "invoicing_status": "example",
    "linked_manufacturing_order_id": 1,
    "location_id": 1,
    "order_created_date": "example",
    "order_no": "example",
    "picked_date": "example",
    "product_availability": "example",
    "production_status": "example",
    "shipping_address_id": 1,
    "source": "example",
    "status": "example",
    "tracking_carrier": "example",
    "tracking_method": "example",
    "tracking_number": "example",
    "tracking_number_url": "example",
    "updated_at": "example"
  }
}
```
