# Amazon Business

> Read Amazon Business order reports, line items and shipment details.

App · 4 actions. Web page: https://docs.lodol.com/docs/integrations/amazon-business

## Actions

### List order line items

List the products, quantities and charges on orders in a date range.

**Inputs**

- Start time (`start_time`, date and time, required): The earliest order timestamp to include.
- End time (`end_time`, date and time, required): The latest order timestamp to include.
- Order IDS (`order_ids`, list): Only include these order IDs.
- Page token (`page_token`, text): Use the next page token returned by the previous step with the same filters.

**Outputs**

- `data` (object): The response from Amazon Business.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "orderLineItemsReport": [
      {}
    ],
    "size": 1
  }
}
```

### List order reports

List order totals, statuses and buying groups for a date range.

**Inputs**

- Start time (`start_time`, date and time, required): The earliest order timestamp to include.
- End time (`end_time`, date and time, required): The latest order timestamp to include.
- Statuses (`statuses`, list): Only include orders in these states. One or more of: `PENDING_APPROVAL` (Pending approval), `PAYMENT_CONFIRMED` (Payment confirmed), `PENDING_FULFILLMENT` (Pending fulfillment), `PENDING`, `CANCELLED`, `CLOSED`.
- Marketplace (`marketplace`, text): The marketplace where the order was placed. One of: `US`, `CA`, `MX`, `UK`, `DE`, `FR`, `IT`, `ES`, `IN`, `JP`, `AU`.
- Page token (`page_token`, text): Use the next page token returned by the previous step with the same filters.

**Outputs**

- `data` (object): The response from Amazon Business.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "ordersReport": [
      {
        "buyerGroup": {},
        "buyingCustomer": {},
        "charges": [
          {}
        ],
        "orderMetadata": {
          "orderDate": "example",
          "orderId": "example",
          "region": "example"
        },
        "orderStatus": "example",
        "purchaseOrderNumber": "example"
      }
    ],
    "size": 1
  }
}
```

### List shipment line items

Read shipped products and quantities for orders in a date range.

**Inputs**

- Start time (`start_time`, date and time, required): The earliest order timestamp to include.
- End time (`end_time`, date and time, required): The latest order timestamp to include.
- Order IDS (`order_ids`, list): Only include these order IDs.
- Page token (`page_token`, text): Use the next page token returned by the previous step with the same filters.

**Outputs**

- `data` (object): The response from Amazon Business.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "shipmentLineItemsReport": [
      {}
    ],
    "size": 1
  }
}
```

### List shipment reports

Read shipments for orders placed in a date range.

**Inputs**

- Start time (`start_time`, date and time, required): The earliest order timestamp to include.
- End time (`end_time`, date and time, required): The latest order timestamp to include.
- Order IDS (`order_ids`, list): Only include these order IDs.
- Page token (`page_token`, text): Use the next page token returned by the previous step with the same filters.

**Outputs**

- `data` (object): The response from Amazon Business.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "shipmentsReport": [
      {}
    ],
    "size": 1
  }
}
```
