# OpenCart

> Read orders and post order history in an OpenCart 3 store.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/opencart

## Actions

### Add order history

Record an order status and comment, with an option to notify the customer.

**Inputs**

- Order Id (`order_id`, number, required): The OpenCart order number. At least 1.
- Order Status Id (`order_status_id`, number, required): The order status ID configured in the shop. At least 1.
- Comment (`comment`, text): A note about the status change.
- Notify (`notify`, true/false): Send the update to the customer.

**Outputs**

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

**Example output**

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

### Get an order

Read an order’s status, customer and totals.

**Inputs**

- Order Id (`order_id`, number, required): The OpenCart order number. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "order": {
      "email": "example",
      "order_id": 1,
      "order_status_id": 1,
      "total": "example"
    },
    "success": "example"
  }
}
```
