# Privacy.com

> Manage virtual cards and find card transactions.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/privacy-com

## Actions

### Create card

Create a new virtual card.

**Inputs**

- Exp month (`exp_month`, text): Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided, an expiration date will be generated.
- Exp year (`exp_year`, text): Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is provided, an expiration date will be generated.
- Funding token (`funding_token`, text): The token for the desired `FundingAccount` to use when making transactions with this card.
- Memo (`memo`, text): Friendly name to identify the card.
- Spend limit (`spend_limit`, number): Amount (in cents) to limit approved authorizations. Transaction requests above the spend limit will be declined. At least 0.
- Spend limit duration (`spend_limit_duration`, text): Spend limit duration. One of: `ANNUALLY`, `FOREVER`, `MONTHLY`, `TRANSACTION`.
- State (`state`, text): Card state values: * `OPEN` - Card will approve authorizations (if they match card and account parameters). * `PAUSED` - Card will decline authorizations, but can be resumed at a later time. One of: `OPEN`, `PAUSED`.
- Type (`type`, text, required): Type. One of: `DIGITAL_WALLET` (Digital wallet), `MERCHANT_LOCKED` (Merchant locked), `SINGLE_USE` (Single use), `UNLOCKED`.

**Outputs**

- `data` (object): The response from Privacy.com.

**Example output**

```json
{
  "data": {
    "created": "example",
    "exp_month": "example",
    "exp_year": "example",
    "funding": {
      "account_name": "example",
      "created": "example",
      "last_four": "example",
      "nickname": "example",
      "state": "ENABLED",
      "token": "example",
      "type": "DEPOSITORY_CHECKING"
    },
    "hostname": "example",
    "last_four": "example",
    "memo": "example",
    "spend_limit": 1,
    "spend_limit_duration": "ANNUALLY",
    "state": "CLOSED",
    "token": "example",
    "type": "DIGITAL_WALLET"
  }
}
```

### Get card

Get card configuration such as spend limit and state.

**Inputs**

- Card token (`card_token`, text, required): Card token.

**Outputs**

- `data` (object): The response from Privacy.com.

**Example output**

```json
{
  "data": {
    "created": "example",
    "exp_month": "example",
    "exp_year": "example",
    "funding": {
      "account_name": "example",
      "created": "example",
      "last_four": "example",
      "nickname": "example",
      "state": "ENABLED",
      "token": "example",
      "type": "DEPOSITORY_CHECKING"
    },
    "hostname": "example",
    "last_four": "example",
    "memo": "example",
    "spend_limit": 1,
    "spend_limit_duration": "ANNUALLY",
    "state": "CLOSED",
    "token": "example",
    "type": "DIGITAL_WALLET"
  }
}
```

### List cards

List cards.

**Inputs**

- Begin (`begin`, date and time): Date string in 8601 format. Only entries created after the specified date will be included. UTC time zone.
- End (`end`, date and time): Date string in 8601 format. Only entries created before the specified date will be included. UTC time zone.
- Page (`page`, number): Page (for pagination). Default: `1`.
- Page size (`page_size`, number): Page size (for pagination). From 1 to 100. Default: `50`.

**Outputs**

- `data` (object): The response from Privacy.com.

**Example output**

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

### List funding sources

List all the funding sources associated with the Privacy account.

**Inputs**

- Account token (`account_token`, text): Account token.

**Outputs**

- `data` (object): The response from Privacy.com.

**Example output**

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

### List transactions

List transactions.

**Inputs**

- Card token (`card_token`, text): Filters transactions associated with a specific card.
- Result (`result`, text): List specific transactions. Filters include `APPROVED`, and `DECLINED`. One of: `APPROVED`, `DECLINED`.
- Begin (`begin`, date and time): Date string in 8601 format. Only entries created after the specified date will be included. UTC time zone.
- End (`end`, date and time): Date string in 8601 format. Only entries created before the specified date will be included. UTC time zone.
- Page (`page`, number): Page (for pagination). Default: `1`.
- Page size (`page_size`, number): Page size (for pagination). From 1 to 100. Default: `50`.

**Outputs**

- `data` (object): The response from Privacy.com.

**Example output**

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

### Update card

Update card.

**Inputs**

- Card token (`card_token`, text, required): Card token.
- Memo (`memo`, text): Friendly name to identify the card.
- Spend limit (`spend_limit`, number): Amount (in cents) to limit approved authorizations. Transaction requests above the spend limit will be declined.
- Spend limit duration (`spend_limit_duration`, text): Spend limit duration. One of: `ANNUALLY`, `FOREVER`, `MONTHLY`, `TRANSACTION`.
- State (`state`, text): State. One of: `CLOSED`, `OPEN`, `PAUSED`.

**Outputs**

- `data` (object): The response from Privacy.com.

**Example output**

```json
{
  "data": {
    "created": "example",
    "exp_month": "example",
    "exp_year": "example",
    "funding": {
      "account_name": "example",
      "created": "example",
      "last_four": "example",
      "nickname": "example",
      "state": "ENABLED",
      "token": "example",
      "type": "DEPOSITORY_CHECKING"
    },
    "hostname": "example",
    "last_four": "example",
    "memo": "example",
    "spend_limit": 1,
    "spend_limit_duration": "ANNUALLY",
    "state": "CLOSED",
    "token": "example",
    "type": "DIGITAL_WALLET"
  }
}
```
