# Qgiv

> Read donations, refunds, recurring donations and registrations, and manage pledges and restrictions in Qgiv.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/qgiv

## Actions

### Create a pledge

Add a pledge option donors can choose on your form.

**Inputs**

- Title (`title`, text, required): The pledge's name, such as Monthly pledge.
- Amount (`amount`, number, required): The amount pledged each time. At least 0.
- How often (`frequency`, text, required): How often the pledge is given. One of: `weekly`, `biweekly` (Every two weeks), `monthly`, `quarterly`, `semiannually` (Every six months), `annually` (Yearly).
- Start date (`start_date`, date): When the pledge starts.
- Number of payments (`payments`, number): How many times the pledge is given. At least 1.
- Restriction (`restriction`, text): What the pledge goes to, such as Where the need is greatest.
- Sort order (`sort_order`, number): Where the pledge appears in the list on the form. At least 0.
- Status (`state`, text): Whether donors can choose the pledge. Deleted removes it. One of: `1` (Active), `5` (Inactive), `0` (Deleted).

**Outputs**

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

**Example output**

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

### Create a restriction

Add a restriction (a fund or designation) donors can give to.

**Inputs**

- Title (`title`, text, required): The restriction's name.
- Display title (`display_title`, text): The name donors see.
- Description (`description`, text): What gifts to the restriction pay for.
- Export header (`export_header`, text): The column heading for the restriction in exports.
- Show description (`show_description`, true/false): Show the description on the form.
- Show on form (`show_on_form`, true/false): Offer the restriction on the online form.
- Show on virtual terminal (`show_on_virtual_terminal`, true/false): Offer the restriction on the virtual terminal.
- Show on kiosk (`show_on_kiosk`, true/false): Offer the restriction on kiosks.
- Show on mobile (`show_on_mobile`, true/false): Offer the restriction on the mobile form.
- Sort order (`sort_order`, number): Where the restriction appears in the list. At least 0.
- Status (`state`, text): Whether donors can choose the restriction. Deleted removes it. One of: `1` (Active), `5` (Inactive), `0` (Deleted).

**Outputs**

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

**Example output**

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

### Get a pledge

Get one pledge option by ID.

**Inputs**

- Pledge (`pledge_id`, text, required): The pledge to get.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pledge": {
      "dateBegin": "example",
      "frequencyCount": "example",
      "frequencyUnit": "example",
      "id": "example",
      "iterations": "example",
      "restrictionContent": "example",
      "sort": "example",
      "state": "example",
      "title": "example",
      "value": "example"
    }
  }
}
```

### Get a recurring donation

Get one recurring donation by ID.

**Inputs**

- Recurring donation ID (`recurring_id`, text, required): The ID of the recurring donation.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "recurring": {
      "amount": "example",
      "donorAddress": "example",
      "donorEmail": "example",
      "donorId": "example",
      "donorName": "example",
      "endDate": "example",
      "frequency": "example",
      "id": "example",
      "nextBilling": "example",
      "pledge": "example",
      "reasonStopped": "example",
      "startDate": "example",
      "state": "example"
    }
  }
}
```

### Get a refund

Get one refund by ID.

**Inputs**

- Refund ID (`refund_id`, text, required): The ID of the refund.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "refund": {
      "billingAddress": "example",
      "billingCity": "example",
      "billingCountry": "example",
      "billingName": "example",
      "billingState": "example",
      "billingZip": "example",
      "dedication": "example",
      "donationSource": "example",
      "firstName": "example",
      "formId": "example",
      "id": "example",
      "isRecurring": "example",
      "lastFour": "example",
      "lastName": "example",
      "paymentMethod": "example",
      "paymentType": "example",
      "phone": "example",
      "refundDate": "example",
      "refundSettleDate": "example",
      "restriction": "example",
      "title": "example",
      "transStatus": "example",
      "transaction": "example",
      "type": "example"
    }
  }
}
```

### Get a registration

Get one peer-to-peer registration by ID.

**Inputs**

- Registration ID (`registration_id`, text, required): The ID of the registration.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "registration": {
      "category": {
        "id": "example",
        "title": "example"
      },
      "form": "example",
      "formId": "example",
      "fundraisingGoal": "example",
      "globalAccount": "example",
      "id": "example",
      "registrant": {
        "city": "example",
        "country": "example",
        "email": "example",
        "firstName": "example",
        "id": "example",
        "lastName": "example",
        "phone": "example",
        "state": "example",
        "street": "example",
        "zip": "example"
      },
      "registrationDate": "example",
      "team": "example",
      "teamCaptain": "example",
      "teamName": "example",
      "totalOfflineUnverified": "example",
      "totalOfflineVerified": "example",
      "totalOnline": "example",
      "totalRaised": "example"
    }
  }
}
```

### Get a restriction

Get one restriction by ID.

**Inputs**

- Restriction (`restriction_id`, text, required): The restriction to get.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "restriction": {
      "displayDescription": "example",
      "displayOnFrontend": "example",
      "displayOnKiosk": "example",
      "displayOnMobile": "example",
      "displayOnVT": "example",
      "displayTitle": "example",
      "exportHeader": "example",
      "id": "example",
      "isCustomRestriction": "example",
      "restrictionDescription": "example",
      "sort": "example",
      "state": "example",
      "subrestrictions": [],
      "title": "example"
    }
  }
}
```

### Get a statement

Get one billing statement by ID.

**Inputs**

- Statement (`statement_id`, text, required): The statement to get.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "statement": {
      "amountContributed": "example",
      "credited": "example",
      "date": "example",
      "dateDebited": "example",
      "debited": "example",
      "flatFee": "example",
      "id": "example",
      "monthlyFee": "example",
      "percentage": "example",
      "refunded": "example",
      "setupFee": "example",
      "transactionFees": "example"
    }
  }
}
```

### Get a transaction

Get one transaction by ID.

**Inputs**

- Transaction ID (`transaction_id`, text, required): The ID of the transaction.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "transaction": {
      "associatedInfo": "example",
      "billingAddress": "example",
      "billingCity": "example",
      "billingCountry": "example",
      "billingName": "example",
      "billingState": "example",
      "billingZip": "example",
      "checkNumber": "example",
      "contactAddress": "example",
      "contactCity": "example",
      "contactCompany": "example",
      "contactCountry": "example",
      "contactEmail": "example",
      "contactState": "example",
      "contactZip": "example",
      "customAmountName": "example",
      "dedication": "example",
      "dedicationName": "example",
      "dedicationRecipients": "example",
      "dedicationText": "example",
      "donationSource": "example",
      "donations": [],
      "donorId": "example",
      "fee": "example",
      "filter": "example",
      "firstName": "example",
      "form": "example",
      "formId": "example",
      "frequency": "example",
      "giftAssist": "example",
      "id": "example",
      "isRecurring": "example",
      "lastFour": "example",
      "lastName": "example",
      "netAmount": "example",
      "optedIn": "example",
      "paymentMethod": "example",
      "paymentType": "example",
      "phone": "example",
      "recurringId": "example",
      "restriction": "example",
      "restrictionId": "example",
      "subRestriction": "example",
      "title": "example",
      "transStatus": "example",
      "transactionDate": "example",
      "transactionMemo": "example",
      "transactionWasAnonymous": "example",
      "type": "example",
      "value": "example"
    }
  }
}
```

### Get an event

Get one event by ID.

**Inputs**

- Event (`event_id`, text, required): The event to get.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "event": {
      "beginEvent": "example",
      "endEvent": "example",
      "id": "example",
      "notifyEmail": "example",
      "prices": "example",
      "state": "example",
      "title": "example"
    }
  }
}
```

### List events

List the events on your forms.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List pledges

List the pledge options on your forms.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List recent refunds

List the most recent refunds, newest first.

**Inputs**

- How many (`limit`, number, required): How many of the most recent records to return. From 1 to 500.

**Outputs**

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

**Example output**

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

### List recent registrations

List the most recent peer-to-peer event registrations, newest first.

**Inputs**

- How many (`limit`, number, required): How many of the most recent records to return. From 1 to 500.

**Outputs**

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

**Example output**

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

### List recent transactions

List the most recent donations and other transactions, newest first.

**Inputs**

- How many (`limit`, number, required): How many of the most recent records to return. From 1 to 500.

**Outputs**

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

**Example output**

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

### List recurring donations

List recurring donations, all of them or only those in one status.

**Inputs**

- Status (`status`, text, required): Which recurring donations to list. One of: `list` (All), `active`, `paused`, `expired`, `deleted`.

**Outputs**

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

**Example output**

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

### List refunds by date

List the refunds made between two dates.

**Inputs**

- From (`start_date`, date, required): The first day to include.
- To (`end_date`, date, required): The last day to include.

**Outputs**

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

**Example output**

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

### List restrictions

List the restrictions (funds or designations) donors can give to.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List statements

List your Qgiv billing statements.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List transactions after an ID

List the transactions made after a given transaction, by its ID.

**Inputs**

- After transaction ID (`transaction_id`, text, required): The ID of the last transaction you already have.

**Outputs**

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

**Example output**

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

### List transactions by date

List the transactions made between two dates.

**Inputs**

- From (`start_date`, date, required): The first day to include.
- To (`end_date`, date, required): The last day to include.

**Outputs**

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

**Example output**

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

### Update a pledge

Change a pledge option. Only the fields you fill in are changed.

**Inputs**

- Pledge (`pledge_id`, text, required): The pledge to change.
- Title (`title`, text): The pledge's name, such as Monthly pledge.
- Amount (`amount`, number): The amount pledged each time. At least 0.
- How often (`frequency`, text): How often the pledge is given. One of: `weekly`, `biweekly` (Every two weeks), `monthly`, `quarterly`, `semiannually` (Every six months), `annually` (Yearly).
- Start date (`start_date`, date): When the pledge starts.
- Number of payments (`payments`, number): How many times the pledge is given. At least 1.
- Restriction (`restriction`, text): What the pledge goes to, such as Where the need is greatest.
- Sort order (`sort_order`, number): Where the pledge appears in the list on the form. At least 0.
- Status (`state`, text): Whether donors can choose the pledge. Deleted removes it. One of: `1` (Active), `5` (Inactive), `0` (Deleted).

**Outputs**

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

**Example output**

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

### Update a restriction

Change a restriction. Only the fields you fill in are changed.

**Inputs**

- Restriction (`restriction_id`, text, required): The restriction to change.
- Title (`title`, text): The restriction's name.
- Display title (`display_title`, text): The name donors see.
- Description (`description`, text): What gifts to the restriction pay for.
- Export header (`export_header`, text): The column heading for the restriction in exports.
- Show description (`show_description`, true/false): Show the description on the form.
- Show on form (`show_on_form`, true/false): Offer the restriction on the online form.
- Show on virtual terminal (`show_on_virtual_terminal`, true/false): Offer the restriction on the virtual terminal.
- Show on kiosk (`show_on_kiosk`, true/false): Offer the restriction on kiosks.
- Show on mobile (`show_on_mobile`, true/false): Offer the restriction on the mobile form.
- Sort order (`sort_order`, number): Where the restriction appears in the list. At least 0.
- Status (`state`, text): Whether donors can choose the restriction. Deleted removes it. One of: `1` (Active), `5` (Inactive), `0` (Deleted).

**Outputs**

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

**Example output**

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