# Malomo

> Look up tracked orders, customers and shipment activity in Malomo.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/malomo

## Actions

### Create a customer

Create a customer record in Malomo.

**Inputs**

- Email (`email`, text, required): The customer email address.
- First Name (`first_name`, text): The customer’s first name.
- Last Name (`last_name`, text): The customer’s last name.
- Phone Number (`phone_number`, text): The customer’s phone number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "email": "example",
    "first_name": "example",
    "id": "example",
    "last_name": "example",
    "phone_number": "example",
    "updated_at": "example"
  }
}
```

### Delete a customer

Remove a customer record from Malomo.

**Inputs**

- Customer (`customer_id`, text, required): The customer id.

**Outputs**

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

**Example output**

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

### Find order by external ID

Find a tracked order by the ID from your store.

**Inputs**

- Alternate Id (`alternate_id`, text, required): The store’s order ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alternate_id": "example",
    "created_at": "example",
    "email": "example",
    "id": "example",
    "number": "example",
    "updated_at": "example"
  }
}
```

### Find order by number and email

Find a tracked order using the order number and the customer’s email address.

**Inputs**

- Number (`number`, text, required): The order number.
- Customer Email (`customer_email`, text, required): The customer email address.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alternate_id": "example",
    "created_at": "example",
    "email": "example",
    "id": "example",
    "number": "example",
    "updated_at": "example"
  }
}
```

### Find order by tracking code

Find the order associated with a shipment tracking number.

**Inputs**

- Tracking Code (`tracking_code`, text, required): The carrier tracking number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alternate_id": "example",
    "created_at": "example",
    "email": "example",
    "id": "example",
    "number": "example",
    "updated_at": "example"
  }
}
```

### Get a customer

Read a customer by their Malomo ID.

**Inputs**

- Customer (`customer_id`, text, required): The customer id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "email": "example",
    "first_name": "example",
    "id": "example",
    "last_name": "example",
    "phone_number": "example",
    "updated_at": "example"
  }
}
```

### Get a webhook

Read one webhook subscription by ID.

**Inputs**

- Webhook Id (`webhook_id`, text, required): The webhook id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "created_at": "example",
    "id": "example",
    "topic": "example",
    "updated_at": "example",
    "url": "example"
  }
}
```

### Get an order

Read a tracked order by its Malomo ID.

**Inputs**

- Order Id (`order_id`, text, required): The order id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "alternate_id": "example",
    "created_at": "example",
    "email": "example",
    "id": "example",
    "number": "example",
    "updated_at": "example"
  }
}
```

### List customer events

Read the events associated with a customer.

**Inputs**

- Customer (`customer_id`, text, required): The customer id.
- Next (`next`, text): The next cursor supplied by Malomo.
- Prev (`prev`, text): The previous cursor supplied by Malomo.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "id": "example",
      "label": "example",
      "timestamp": 1,
      "type": "example",
      "updated_at": "example"
    }
  ]
}
```

### List customers

Read the latest customer records.

**Inputs**

- Next (`next`, text): The next cursor supplied by Malomo.
- Prev (`prev`, text): The previous cursor supplied by Malomo.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "email": "example",
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "phone_number": "example",
      "updated_at": "example"
    }
  ]
}
```

### List order events

Read the events associated with a tracked order.

**Inputs**

- Order Id (`order_id`, text, required): The order id.
- Next (`next`, text): The next cursor supplied by Malomo.
- Prev (`prev`, text): The previous cursor supplied by Malomo.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "id": "example",
      "label": "example",
      "timestamp": 1,
      "type": "example",
      "updated_at": "example"
    }
  ]
}
```

### List orders

Read the latest tracked orders.

**Inputs**

- Next (`next`, text): The next cursor supplied by Malomo.
- Prev (`prev`, text): The previous cursor supplied by Malomo.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "alternate_id": "example",
      "created_at": "example",
      "email": "example",
      "id": "example",
      "number": "example",
      "updated_at": "example"
    }
  ]
}
```

### List webhooks

Read existing Malomo webhook subscriptions.

**Inputs**

- Next (`next`, text): The next cursor supplied by Malomo.
- Prev (`prev`, text): The previous cursor supplied by Malomo.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "created_at": "example",
      "id": "example",
      "topic": "example",
      "updated_at": "example",
      "url": "example"
    }
  ]
}
```

### Update a customer

Change selected customer fields while keeping the rest of the record.

**Inputs**

- Customer (`customer_id`, text, required): The customer id.
- Email (`email`, text): The customer email address.
- First Name (`first_name`, text): The customer’s first name.
- Last Name (`last_name`, text): The customer’s last name.
- Phone Number (`phone_number`, text): The customer’s phone number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "email": "example",
    "first_name": "example",
    "id": "example",
    "last_name": "example",
    "phone_number": "example",
    "updated_at": "example"
  }
}
```
