# EasyPost

> Create addresses, parcels, shipments and trackers, buy or refund shipping labels, and read events.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/easypost

## Actions

### Buy shipment

Buy shipment.

**Inputs**

- Id (`id`, text, required): Id.
- Rate id (`rate_id`, text, required): A rate ID returned by Create shipment.
- Insurance (`insurance`, number): Declared value in US dollars; leave empty for no extra insurance.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Create address

Create address.

**Inputs**

- Street1 (`street1`, text, required): Street1.
- Street2 (`street2`, text): Street2.
- City (`city`, text, required): City.
- State (`state`, text, required): State.
- Zip (`zip`, text, required): Zip.
- Country (`country`, text, required): Country. One of: `AF` (Afghanistan), `AX` (Åland Islands), `AL` (Albania), `DZ` (Algeria), `AD` (Andorra), `AO` (Angola), `AI` (Anguilla), `AQ` (Antarctica), `AG` (Antigua & Barbuda), `AR` (Argentina), and 239 more.
- Name (`name`, text): Name.
- Company (`company`, text): Company.
- Phone (`phone`, text): Phone.
- Email (`email`, text): Email.
- Residential (`residential`, true/false): Residential.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Create and verify address

Create an address and verify it with the postal service.

**Inputs**

- Street1 (`street1`, text, required): Street1.
- Street2 (`street2`, text): Street2.
- City (`city`, text, required): City.
- State (`state`, text, required): State.
- Zip (`zip`, text, required): Zip.
- Country (`country`, text, required): Country. One of: `AF` (Afghanistan), `AX` (Åland Islands), `AL` (Albania), `DZ` (Algeria), `AD` (Andorra), `AO` (Angola), `AI` (Anguilla), `AQ` (Antarctica), `AG` (Antigua & Barbuda), `AR` (Argentina), and 239 more.
- Name (`name`, text): Name.
- Company (`company`, text): Company.
- Phone (`phone`, text): Phone.
- Email (`email`, text): Email.
- Residential (`residential`, true/false): Residential.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Create batch

Create an unprocessed batch. This does not purchase shipping labels.

**Inputs**

- Reference (`reference`, text): Your reference for the unprocessed batch.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Create parcel

Create parcel.

**Inputs**

- Length (`length`, number): Length.
- Width (`width`, number): Width.
- Height (`height`, number): Height.
- Weight (`weight`, number, required): Weight.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Create shipment

Create shipment.

**Inputs**

- To address (`to_address`, object, required): Use an address from Create address as {"id": "adr_..."}, or fill the address fields.
- From address (`from_address`, object, required): Use an address from Create address as {"id": "adr_..."}, or fill the address fields.
- Parcel (`parcel`, object, required): Use a parcel from Create parcel as {"id": "prcl_..."}, or supply dimensions and weight in ounces.
- Reference (`reference`, text): Reference.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Create tracker

Create tracker.

**Inputs**

- Tracking code (`tracking_code`, text, required): Tracking code.
- Carrier (`carrier`, text): Carrier.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get address

Get address.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get batch

Get batch.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get event

Get event.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get parcel

Get parcel.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get shipment

Get shipment.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get tracker

Get tracker.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get user

Get user.

**Inputs**: None.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### List addresses

List stored addresses with a continuation value.

**Inputs**

- Page size (`page_size`, number): Records per page, 1 to 100. From 1 to 100.
- Before id (`before_id`, text): ID immediately after the page to read.
- After id (`after_id`, text): ID immediately before the page to read.
- Start datetime (`start_datetime`, date and time): Only records created on or after this time.
- End datetime (`end_datetime`, date and time): Only records created before this time.

**Outputs**: Result.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {
    "addresses": [],
    "has_more": false
  },
  "has_more": false,
  "next_cursor": null
}
```

### List carrier accounts

List carrier accounts.

**Inputs**: None.

**Outputs**: Result.

- `data` (list): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```

### List events

List events. Returns one page; use the continuation value for more records.

**Inputs**

- Page size (`page_size`, number): Records per page, 1 to 100. From 1 to 100.
- Before id (`before_id`, text): ID immediately after the page to read.
- After id (`after_id`, text): ID immediately before the page to read.
- Start datetime (`start_datetime`, date and time): Only records created on or after this time.
- End datetime (`end_datetime`, date and time): Only records created before this time.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {
    "events": [],
    "has_more": false
  },
  "has_more": false,
  "next_cursor": null
}
```

### List shipments

List shipments. Returns one page; use the continuation value for more records.

**Inputs**

- Page size (`page_size`, number): Records per page, 1 to 100. From 1 to 100.
- Before id (`before_id`, text): ID immediately after the page to read.
- After id (`after_id`, text): ID immediately before the page to read.
- Start datetime (`start_datetime`, date and time): Only records created on or after this time.
- End datetime (`end_datetime`, date and time): Only records created before this time.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "shipments": []
  },
  "has_more": false,
  "next_cursor": null
}
```

### List trackers

List trackers. Returns one page; use the continuation value for more records.

**Inputs**

- Page size (`page_size`, number): Records per page, 1 to 100. From 1 to 100.
- Before id (`before_id`, text): ID immediately after the page to read.
- After id (`after_id`, text): ID immediately before the page to read.
- Start datetime (`start_datetime`, date and time): Only records created on or after this time.
- End datetime (`end_datetime`, date and time): Only records created before this time.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {
    "has_more": false,
    "trackers": []
  },
  "has_more": false,
  "next_cursor": null
}
```

### Refund shipment

Refund shipment.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**: Result.

- `data` (object): Complete service response.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```
