# LawPay

> Review LawPay transactions, recurring charges and gateway events.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/lawpay

## Actions

### Get event

Get event in the LawPay gateway.

**Inputs**

- Event ID (`event_id`, text, required): Event ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "created": "example",
    "data": {
      "account_id": "example",
      "amount": 1,
      "amount_refunded": 1,
      "authorization_code": "example",
      "auto_capture": false,
      "created": "example",
      "currency": "example",
      "id": "example",
      "method": {
        "address1": "example",
        "card_type": "example",
        "cvv": "example",
        "exp_month": 1,
        "exp_year": 1,
        "fingerprint": "example",
        "name": "example",
        "number": "example",
        "postal_code": "example",
        "type": "example"
      },
      "modified": "example",
      "status": "example",
      "type": "example"
    },
    "id": "example",
    "type": "example"
  }
}
```

### Get merchant

Get merchant in the LawPay gateway.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "ach_accounts": [],
    "address1": "example",
    "api_allowed_ip_address_ranges": "example",
    "city": "example",
    "contact_email": "example",
    "contact_name": "example",
    "contact_phone": "example",
    "country": "example",
    "created": "example",
    "id": "example",
    "merchant_accounts": [],
    "modified": "example",
    "name": "example",
    "postal_code": "example",
    "public_key": "example",
    "state": "example",
    "timezone": "example"
  }
}
```

### Get occurrence

Get occurrence in the LawPay gateway.

**Inputs**

- Recurring charge (`recurring_charge_id`, text, required): Choose a record from the connected account.
- Occurrence ID (`occurrence_id`, text, required): Occurrence ID.

**Outputs**

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

**Example output**

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

### Get recurring charge

Get recurring charge in the LawPay gateway.

**Inputs**

- Recurring charge (`recurring_charge_id`, text, required): Choose a record from the connected account.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": "example",
    "amount": 1,
    "currency": "example",
    "description": "example",
    "id": "example",
    "method": {
      "card_type": "example",
      "exp_month": 1,
      "exp_year": 1,
      "fingerprint": "example",
      "name": "example",
      "number": "example",
      "type": "example"
    },
    "next_payment": "example",
    "schedule": {
      "interval_delay": 1,
      "interval_unit": "example",
      "start": "example"
    },
    "status": "example",
    "total_amount": 1,
    "total_occurrences": 1
  }
}
```

### Get transaction

Get transaction in the LawPay gateway.

**Inputs**

- Transaction (`transaction_id`, text, required): Choose a record from the connected account.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": "example",
    "amount": 1,
    "amount_refunded": 1,
    "authorization_code": "example",
    "auto_capture": false,
    "currency": "example",
    "id": "example",
    "method": {
      "address1": "example",
      "card_type": "example",
      "exp_month": 1,
      "exp_year": 1,
      "fingerprint": "example",
      "name": "example",
      "number": "example",
      "postal_code": "example",
      "type": "example"
    },
    "refunds": [],
    "status": "example",
    "type": "example"
  }
}
```

### List events

List events in the LawPay gateway.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 1000.
- Start date (`start_date`, date and time): Start date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "page_size": 1,
    "results": [],
    "total_entries": 1
  }
}
```

### List occurrences

List occurrences in the LawPay gateway.

**Inputs**

- Recurring charge (`recurring_charge_id`, text, required): Choose a record from the connected account.
- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "page_size": 1,
    "results": [],
    "total_entries": 1
  }
}
```

### List recurring charges

List recurring charges in the LawPay gateway.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Account ID (`account_id`, text): Account ID.
- Status (`status`, text): Status. One of: `ACTIVE`, `COMPLETED`.
- Reference (`reference`, text): Reference.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "page_size": 1,
    "results": [],
    "total_entries": 1
  }
}
```

### List transactions

List transactions in the LawPay gateway.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Search (`search`, text): Search.
- Account ID (`account_id`, text): Account ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "page": 1,
    "page_size": 1,
    "results": [],
    "total_entries": 1
  }
}
```

### Refund charge

Refund charge in the LawPay gateway.

**Inputs**

- Charge ID (`charge_id`, text, required): Charge ID.
- Amount (`amount`, number): Amount. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": "example",
    "amount": 1,
    "auto_capture": false,
    "charge_id": "example",
    "currency": "example",
    "id": "example",
    "method": {
      "card_type": "example",
      "exp_month": 1,
      "exp_year": 1,
      "fingerprint": "example",
      "name": "example",
      "number": "example",
      "type": "example"
    },
    "status": "example",
    "type": "example"
  }
}
```

### Void transaction

Void transaction in the LawPay gateway.

**Inputs**

- Transaction (`transaction_id`, text, required): Choose a record from the connected account.
- Reference (`reference`, text): Reference.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": "example",
    "amount": 1,
    "amount_refunded": 1,
    "authorization_code": "example",
    "auto_capture": false,
    "currency": "example",
    "id": "example",
    "method": {
      "address1": "example",
      "card_type": "example",
      "city": "example",
      "exp_month": 1,
      "exp_year": 1,
      "fingerprint": "example",
      "name": "example",
      "number": "example",
      "postal_code": "example",
      "state": "example",
      "type": "example"
    },
    "status": "example",
    "type": "example"
  }
}
```
