Appeals

Appeals Documentation

Appeal [LIST]

Appeal [LIST]

Request

Endpoint

GET /api/v2/appeals
Content-Type: application/vnd.api+json

Body

Parameters

Filters

account_list_id

Type ID string

Description Filter by Account List; accepts an Account List id; this is required if you want the Contact included on Donations.

Required No

appeal_id

Type ID string

Description where appeal_id

Required No

wildcard_search

Type string

Description where name contains or designation_number starts with wildcard_search

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "6452bcec-0199-4144-b40e-f29b4039f4be",
      "type": "appeals",
      "attributes": {
        "amount": "1000.0",
        "created_at": "2021-11-23T14:38:27Z",
        "currencies": [
          "ZAR"
        ],
        "description": "The description for my new Appeal",
        "end_date": "2021-11-30",
        "name": "Appeal #25",
        "pledges_amount_not_received_not_processed": 0,
        "pledges_amount_processed": 0,
        "pledges_amount_received_not_processed": 0,
        "pledges_amount_total": 0,
        "total_currency": "USD",
        "updated_at": "2021-11-23T14:38:27Z",
        "updated_in_db_at": "2021-11-23T14:38:27Z"
      },
      "relationships": {
        "account_list": {
          "data": {
            "id": "6186ec5f-dd90-4f76-9ca8-9c7cbdd0f262",
            "type": "account_lists"
          }
        },
        "contacts": {
          "data": [

          ]
        },
        "donations": {
          "data": [
            {
              "id": "35edc530-d285-43ec-9e38-2635dd4567db",
              "type": "donations"
            }
          ]
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Appeal]

Description An array of Appeal Objects

Appeal [POST]

Appeal [POST]

Request

Endpoint

POST /api/v2/appeals
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "appeals",
    "attributes": {
      "amount": 1000.0,
      "description": "The description for my new Appeal",
      "end_date": "2021-11-30",
      "exclusion_filter": {
        "status": "Partner - Financial"
      },
      "inclusion_filter": {
        "status": "Partner - Financial,Partner - Pray"
      },
      "name": "Appeal #24",
      "updated_in_db_at": "2021-11-23 14:38:27 UTC"
    },
    "relationships": {
      "account_list": {
        "data": {
          "type": "account_lists",
          "id": "bf6c2360-6703-4049-98ee-9a3cf269000f"
        }
      }
    }
  }
}

Parameters

Attributes

amount

Type float

Description The amount requested for this Appeal

Required No

created_at

Type date

Description The timestamp of when this resource was created

Required No

description

Type string

Description The description for this Appeal

Required No

end_date

Type date string

Description The date in which this Appeal ends

Required No

exclusion_filter

Type object

Description A contact filter object which will specify which contacts to exclude by default

Required No

inclusion_filter

Type object

Description A contact filter object which will specify which contacts to include by default

Required No

name

Type string

Description The name of the Appeal

Required No

pledges_amount_not_received_not_processed

Type number

Description total of pledges where they have not been received

Required No

pledges_amount_processed

Type number

Description total of pledges where they have been processed

Required No

pledges_amount_received_not_processed

Type number

Description total of pledges where they have been received but not yet processed

Required No

pledges_amount_total

Type number

Description total of pledges

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

account_list.data

Type Account List

Description The account list that this Appeal belongs to

Required No

donations.data

Type [Donation]

Description An array of Donation references for the Appeal

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
201 Created

Body

{
  "data": {
    "id": "2a2203df-3878-4365-be02-22e30fabf6ac",
    "type": "appeals",
    "attributes": {
      "amount": "1000.0",
      "created_at": "2021-11-23T14:38:27Z",
      "currencies": [

      ],
      "description": "The description for my new Appeal",
      "end_date": "2021-11-30",
      "name": "Appeal #24",
      "pledges_amount_not_received_not_processed": 0,
      "pledges_amount_processed": 0,
      "pledges_amount_received_not_processed": 0,
      "pledges_amount_total": 0,
      "total_currency": "USD",
      "updated_at": "2021-11-23T14:38:27Z",
      "updated_in_db_at": "2021-11-23T14:38:27Z"
    },
    "relationships": {
      "account_list": {
        "data": {
          "id": "bf6c2360-6703-4049-98ee-9a3cf269000f",
          "type": "account_lists"
        }
      },
      "contacts": {
        "data": [
          {
            "id": "d14c16a3-a95a-45ff-8188-5fb66218073f",
            "type": "contacts"
          }
        ]
      },
      "donations": {
        "data": [

        ]
      }
    }
  }
}

Fields

Attributes

amount

Type float

Description The amount requested for this Appeal

created_at

Type date

Description The timestamp of when this resource was created

currencies

Type [string]

Description The currencies of the donations for this Appeal

description

Type string

Description The description for this Appeal

end_date

Type date string

Description The date in which this Appeal ends

name

Type string

Description The name of the Appeal

pledges_amount_not_received_not_processed

Type number

Description total of pledges where they have not been received

pledges_amount_processed

Type number

Description total of pledges where they have been processed

pledges_amount_received_not_processed

Type number

Description total of pledges where they have been received but not yet processed

pledges_amount_total

Type number

Description total of pledges

total_currency

Type string

Description The type of currency for the Appeal's donations to be converted to

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

account_list.data

Type Account List

Description The account list that this Appeal belongs to

contacts.data

Type [Contact]

Description An array of Contact references for the Appeal

donations.data

Type [Donation]

Description An array of Donation references for the Appeal

Appeal [GET]

Appeal [GET]

Request

Endpoint

GET /api/v2/appeals/85d0b1cb-9fba-4c2d-9c70-c73702b9b1be
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "85d0b1cb-9fba-4c2d-9c70-c73702b9b1be",
    "type": "appeals",
    "attributes": {
      "amount": "1000.0",
      "created_at": "2021-11-23T14:38:27Z",
      "currencies": [
        "ZAR"
      ],
      "description": "The description for my new Appeal",
      "end_date": "2021-11-30",
      "name": "Appeal #27",
      "pledges_amount_not_received_not_processed": 0,
      "pledges_amount_processed": 0,
      "pledges_amount_received_not_processed": 0,
      "pledges_amount_total": 0,
      "total_currency": "USD",
      "updated_at": "2021-11-23T14:38:27Z",
      "updated_in_db_at": "2021-11-23T14:38:27Z"
    },
    "relationships": {
      "account_list": {
        "data": {
          "id": "26c7b9c4-e301-4a8a-892c-31a5cb3df194",
          "type": "account_lists"
        }
      },
      "contacts": {
        "data": [

        ]
      },
      "donations": {
        "data": [
          {
            "id": "f4133780-b1df-4ef8-8553-ce0c7becb8d5",
            "type": "donations"
          }
        ]
      }
    }
  }
}

Fields

Attributes

amount

Type float

Description The amount requested for this Appeal

created_at

Type date

Description The timestamp of when this resource was created

currencies

Type [string]

Description The currencies of the donations for this Appeal

description

Type string

Description The description for this Appeal

end_date

Type date string

Description The date in which this Appeal ends

name

Type string

Description The name of the Appeal

pledges_amount_not_received_not_processed

Type number

Description total of pledges where they have not been received

pledges_amount_processed

Type number

Description total of pledges where they have been processed

pledges_amount_received_not_processed

Type number

Description total of pledges where they have been received but not yet processed

pledges_amount_total

Type number

Description total of pledges

total_currency

Type string

Description The type of currency for the Appeal's donations to be converted to

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

account_list.data

Type Account List

Description The account list that this Appeal belongs to

contacts.data

Type [Contact]

Description An array of Contact references for the Appeal

donations.data

Type [Donation]

Description An array of Donation references for the Appeal

Appeal [PUT]

Appeal [PUT]

Request

Endpoint

PUT /api/v2/appeals/a1dea059-6d62-40fe-b4fe-a41bf9223b0f
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "appeals",
    "attributes": {
      "amount": 1000.0,
      "description": "The description for my new Appeal",
      "end_date": "2021-11-30",
      "exclusion_filter": {
        "status": "Partner - Financial"
      },
      "inclusion_filter": {
        "status": "Partner - Financial,Partner - Pray"
      },
      "name": "Appeal #22",
      "updated_in_db_at": "2021-11-23 14:38:26 UTC"
    },
    "relationships": {
      "account_list": {
        "data": {
          "type": "account_lists",
          "id": "cc279f87-266d-451e-8cce-5f5b2ea36148"
        }
      }
    }
  }
}

Parameters

Attributes

amount

Type float

Description The amount requested for this Appeal

Required No

created_at

Type date

Description The timestamp of when this resource was created

Required No

description

Type string

Description The description for this Appeal

Required No

end_date

Type date string

Description The date in which this Appeal ends

Required No

exclusion_filter

Type object

Description A contact filter object which will specify which contacts to exclude by default

Required No

inclusion_filter

Type object

Description A contact filter object which will specify which contacts to include by default

Required No

name

Type string

Description The name of the Appeal

Required No

overwrite

Type boolean

Description Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.

Required No

pledges_amount_not_received_not_processed

Type number

Description total of pledges where they have not been received

Required No

pledges_amount_processed

Type number

Description total of pledges where they have been processed

Required No

pledges_amount_received_not_processed

Type number

Description total of pledges where they have been received but not yet processed

Required No

pledges_amount_total

Type number

Description total of pledges

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

account_list.data

Type Account List

Description The account list that this Appeal belongs to

Required No

donations.data

Type [Donation]

Description An array of Donation references for the Appeal

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "a1dea059-6d62-40fe-b4fe-a41bf9223b0f",
    "type": "appeals",
    "attributes": {
      "amount": "1000.0",
      "created_at": "2021-11-23T14:38:26Z",
      "currencies": [
        "ZAR"
      ],
      "description": "The description for my new Appeal",
      "end_date": "2021-11-30",
      "name": "Appeal #22",
      "pledges_amount_not_received_not_processed": 0,
      "pledges_amount_processed": 0,
      "pledges_amount_received_not_processed": 0,
      "pledges_amount_total": 0,
      "total_currency": "USD",
      "updated_at": "2021-11-23T14:38:26Z",
      "updated_in_db_at": "2021-11-23T14:38:26Z"
    },
    "relationships": {
      "account_list": {
        "data": {
          "id": "cc279f87-266d-451e-8cce-5f5b2ea36148",
          "type": "account_lists"
        }
      },
      "contacts": {
        "data": [

        ]
      },
      "donations": {
        "data": [
          {
            "id": "ca714eb7-9969-4193-897e-9fb74818887b",
            "type": "donations"
          }
        ]
      }
    }
  }
}

Fields

Attributes

amount

Type float

Description The amount requested for this Appeal

created_at

Type date

Description The timestamp of when this resource was created

currencies

Type [string]

Description The currencies of the donations for this Appeal

description

Type string

Description The description for this Appeal

end_date

Type date string

Description The date in which this Appeal ends

name

Type string

Description The name of the Appeal

pledges_amount_not_received_not_processed

Type number

Description total of pledges where they have not been received

pledges_amount_processed

Type number

Description total of pledges where they have been processed

pledges_amount_received_not_processed

Type number

Description total of pledges where they have been received but not yet processed

pledges_amount_total

Type number

Description total of pledges

total_currency

Type string

Description The type of currency for the Appeal's donations to be converted to

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

account_list.data

Type Account List

Description The account list that this Appeal belongs to

contacts.data

Type [Contact]

Description An array of Contact references for the Appeal

donations.data

Type [Donation]

Description An array of Donation references for the Appeal

Appeal [DELETE]

Appeal [DELETE]

Request

Endpoint

DELETE /api/v2/appeals/a02e7ce9-28ec-4134-9925-bfb88e9f5df3
Content-Type: application/vnd.api+json

Body

Response

Headers

204 No Content

Body

Last updated