# Tremendous

> Read reward orders, campaigns, funding, and delivery history.

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

## Actions

### Get campaign

Get campaign.

**Inputs**

- Campaign (`campaign_id`, text, required): ID of the campaign that should be retrieved

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign": {
      "auto_add_product_rule": {
        "countries": [],
        "currencies": [],
        "enabled": false
      },
      "description": "example",
      "email_style": {
        "button_color": "example",
        "logo_background_color": "example",
        "logo_image_height_px": 1,
        "logo_image_url": "example",
        "sender_name": "example",
        "subject_line": "example"
      },
      "fee_charged_to": "SENDER",
      "id": "example",
      "name": "example",
      "products": [],
      "webpage_style": {
        "background_color": "example",
        "headline": "example",
        "logo_background_color": "example",
        "logo_image_height_px": 1,
        "logo_image_url": "example",
        "message": "example"
      }
    }
  }
}
```

### Get funding source

Get funding source.

**Inputs**

- Funding source (`funding_source_id`, text, required): ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "funding_source": {
      "id": "example",
      "meta": {
        "account_number_mask": "example",
        "account_routing_mask": "example",
        "account_type": "checking",
        "accountholder_name": "example",
        "address_1": "example",
        "address_2": "example",
        "available_amount": 1.0,
        "available_cents": 1,
        "bank_name": "example",
        "city": "example",
        "company_name": "example",
        "credit_limit_amount": 1.0,
        "credit_limit_cents": 1,
        "currency_code": "example",
        "day_of_week": "example",
        "days_of_week": [],
        "emails": "example",
        "expired": false,
        "failure_details": {
          "description": "example",
          "return_code": "example"
        },
        "interval": "example",
        "invoice_type": "example",
        "last4": "example",
        "last_payment_failed_at": "example",
        "month": "example",
        "net": "example",
        "network": "MasterCard",
        "pending_amount": 1.0,
        "pending_cents": 1,
        "phone": "example",
        "refundable": false,
        "state": "example",
        "year": "example",
        "zip": "example"
      },
      "method": "balance",
      "status": "active",
      "type": "COMMERCIAL",
      "usage_permissions": []
    }
  }
}
```

### Get invoice

Get invoice.

**Inputs**

- Invoice ID (`invoice_id`, text, required): ID of the invoice that should be retrieved

**Outputs**

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

**Example output**

```json
{
  "data": {
    "invoice": {
      "amount": 1.0,
      "created_at": "example",
      "currency_code": "USD",
      "id": "example",
      "international": false,
      "orders": [],
      "paid_at": "example",
      "po_number": "example",
      "rewards": [],
      "status": "DELETED"
    }
  }
}
```

### Get order

Get order.

**Inputs**

- Order ID (`order_id`, text, required): Order id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "order": {
      "campaign_id": "example",
      "channel": "UI",
      "created_at": "example",
      "external_id": "example",
      "id": "example",
      "invoice_id": "example",
      "payment": {
        "currency_code": "example",
        "discount": 1.0,
        "fees": 1.0,
        "refund": {
          "currency_code": "example",
          "total": 1.0
        },
        "subtotal": 1.0,
        "total": 1.0
      },
      "rewards": [],
      "status": "CANCELED"
    }
  }
}
```

### Get product

Get product.

**Inputs**

- Product (`product_id`, text, required): ID of the product that should be retrieved

**Outputs**

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

**Example output**

```json
{
  "data": {
    "product": {
      "category": "ach",
      "countries": [],
      "currency_codes": [],
      "description": "example",
      "disclosure": "example",
      "documents": {
        "cardholder_agreement_pdf": "example",
        "cardholder_agreement_url": "example",
        "privacy_policy_url": "example"
      },
      "id": "example",
      "images": [],
      "name": "example",
      "skus": [],
      "subcategory": "beauty_and_health",
      "usage_instructions": "example"
    }
  }
}
```

### Get reward

Get reward.

**Inputs**

- Reward ID (`reward_id`, text, required): ID of the reward that should be retrieved

**Outputs**

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

**Example output**

```json
{
  "data": {
    "reward": {
      "created_at": "example",
      "custom_fields": [],
      "deliver_at": "example",
      "delivery": {
        "method": "EMAIL",
        "status": "SCHEDULED"
      },
      "expires_at": "example",
      "id": "example",
      "order_id": "example",
      "recipient": {
        "email": "example",
        "name": "example",
        "phone": "example"
      },
      "value": {
        "currency_code": "USD",
        "denomination": 1.0
      }
    }
  }
}
```

### Get topup

Get topup.

**Inputs**

- Topup ID (`topup_id`, text, required): ID of the topup request that should be retrieved

**Outputs**

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

**Example output**

```json
{
  "data": {
    "topup": {
      "amount": 1.0,
      "created_at": "example",
      "currency_code": "example",
      "expected_settlement_at": "example",
      "fully_credited_at": "example",
      "funding_source_id": "example",
      "id": "example",
      "idempotency_key": "example",
      "instant_credit_amount": 1.0,
      "processing_fee": 1.0,
      "rejected_at": "example",
      "reversed_at": "example",
      "reversed_reason": "example",
      "settled_amount": 1.0,
      "status": "example"
    }
  }
}
```

### Get webhook

> 📘 Learn more about Webhooks > > Our guide explains everything you need to know about the Tremendous webhooks: > Read it here

**Inputs**

- Webhook ID (`webhook_id`, text, required): ID of the webhook to retrieve

**Outputs**

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

**Example output**

```json
{
  "data": {
    "webhook": {
      "id": "example",
      "private_key": "example",
      "url": "example"
    }
  }
}
```

### List balance transactions

Fetch a list of all balance transactions on your account.

**Inputs**

- Offset (`offset`, number): Offsets the returned list by the given number of transactions. The returned transactions are ordered (and offsetted) by their creation date (DESC).
- Limit (`limit`, number): Limits the number of transactions listed. The default value is 10.
- Created after (`created_after`, date and time): Only return results where the created_at field is greater than or equal to the supplied value. The string needs to be an ISO 8601 datetime.
- Created before (`created_before`, date and time): Only return results where the created_at field is less than or equal to the supplied value. The string needs to be an ISO 8601 datetime.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "transactions": []
  }
}
```

### List campaigns

Retrieve a list of all campaigns created in your account

**Inputs**

- Limit (`limit`, number): Limits the number of campaigns listed. The maximum value is 500. Without a limit, every campaign is returned.
- Offset (`offset`, number): Offsets the returned list by the given number of campaigns. Campaigns come back in the same order on every page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaigns": [],
    "total_count": 1
  }
}
```

### List funding sources

Retrieve a list of all funding sources in your organization's account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "funding_sources": []
  }
}
```

### List invoices

Fetch a list of all invoices on your account. > 🚧 Deleted invoices are omitted > > The response does not include any previously deleted invoices.

**Inputs**

- Offset (`offset`, number): Offsets the returned list by the given number of invoices. The returned invoices are ordered (and offsetted) by their creation date (DESC).
- Limit (`limit`, number): Limits the number of invoices listed. The maximum and default value is 10.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "invoices": [],
    "total_count": 1
  }
}
```

### List members

To list members of a sub-organization, use an API key for that organization. You can create one in the Tremendous dashboard.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "members": []
  }
}
```

### List orders

Retrieve a list of orders

**Inputs**

- Offset (`offset`, number): Offsets the returned list by the given number of orders. The returned orders are ordered (and offsetted) by their creation date (DESC).
- Campaign ID (`campaign_id`, text): Only return results with a matching campaign_id.
- External ID (`external_id`, text): Only return results with a matching external_id.
- Created after (`created_after`, date and time): Only return results where the created_at field is greater than or equal to the supplied value. The string needs to be an ISO 8601 datetime.
- Created before (`created_before`, date and time): Only return results where the created_at field is less than or equal to the supplied value. The string needs to be an ISO 8601 datetime.
- Limit (`limit`, number): Limits the number of orders listed. The maximum value is 500 and the default is 10.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "orders": [],
    "total_count": 1
  }
}
```

### List products

Retrieve a list of available products

**Inputs**

- Webhook ID (`webhook_id`, text): Comma-separated list of product IDs, used to only retrieve the provided products. Also accepts the special value `ALL_FEE_FREE`, which stands for every product in your catalog that carries no fee.
- Country (`country`, text): Comma-separated list of [Alpha-2 country codes](https://www.iban.com/country-codes), used to only retrieve products available in the provided countries
- Currency (`currency`, text): Comma-separated list of [currency codes](https://www.iban.com/currency-codes), used to only retrieve products available in the provided currencies
- Subcategory (`subcategory`, text): Comma-separated list of [subcategories](https://developers.tremendous.com/reference/obj-schema-products-1), used to only retrieve products with the provided subcategories

**Outputs**

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

**Example output**

```json
{
  "data": {
    "products": []
  }
}
```

### List rewards

List rewards.

**Inputs**

- Offset (`offset`, number): Offsets the returned list by the given number of rewards. The returned rewards are ordered (and offsetted) by their creation date (DESC).
- Limit (`limit`, number): Limits the number of rewards listed. The maximum value is 500 and the default is 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "rewards": [],
    "total_count": 1
  }
}
```

### List roles

List all available roles in the organization.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "roles": []
  }
}
```

### List topups

Retrieve a list of all topup requests.

**Inputs**

- Offset (`offset`, number): Offsets the returned list by the given number of topups. The returned topups are ordered and offset by their creation date (DESC).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "topups": [],
    "total_count": 1
  }
}
```

### List webhook events

List webhook events.

**Inputs**

- Webhook ID (`webhook_id`, text, required): ID of the webhook to list the events for

**Outputs**

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

**Example output**

```json
{
  "data": {
    "events": []
  }
}
```

### List webhooks

List webhooks.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "webhooks": []
  }
}
```
