Merge

Merge Documentation

Merge [POST]

Merge [POST]

Request

Endpoint

POST /api/v2/account_lists/b60a0853-c374-4281-9a92-30becd8599f9/merge
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "merge",
    "relationships": {
      "account_list_to_merge": {
        "data": {
          "type": "account_lists",
          "id": "504052ea-8949-484b-a279-38e66bdd6ea2"
        }
      }
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

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_to_merge.data

Type type

Description account list to merge

Required No

Response

Headers

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

Body

{
  "data": {
    "id": "b60a0853-c374-4281-9a92-30becd8599f9",
    "type": "account_lists",
    "attributes": {
      "active_mpd_finish_at": null,
      "active_mpd_monthly_goal": null,
      "active_mpd_start_at": null,
      "balance": 0,
      "committed": 0,
      "created_at": "2022-01-12T17:18:17Z",
      "currency": null,
      "default_currency": "USD",
      "home_country": null,
      "last_prayer_letter_at": null,
      "monthly_goal": null,
      "name": "Fernanda ",
      "primary_appeal": null,
      "progress": {
        "monthly_goal": null,
        "in_hand_percent": null,
        "pledged_percent": null,
        "received_pledges": 0,
        "salary_balance": 0,
        "balance": 0,
        "total_pledges": 0
      },
      "received": 0,
      "salary_organization": "0b8c54df-d4a6-42bd-90b0-79b8f1d0522e",
      "staff_account_ids": [

      ],
      "tester": null,
      "total_pledges": 0,
      "updated_at": "2022-01-12T17:18:17Z",
      "updated_in_db_at": "2022-01-12T17:18:17Z",
      "weeks_on_mpd": 0
    },
    "relationships": {
      "primary_appeal": {
        "data": null
      },
      "users": {
        "data": [
          {
            "id": "2894bac4-29bd-49a9-9d48-4f02a7e7f559",
            "type": "users"
          }
        ]
      },
      "coaches": {
        "data": [

        ]
      },
      "notification_preferences": {
        "data": [

        ]
      },
      "organization_accounts": {
        "data": [
          {
            "id": "3dd67c64-1ddd-4768-a108-26f60dc1793a",
            "type": "organization_accounts"
          }
        ]
      }
    }
  }
}

Fields

Attributes

active_mpd_finish_at

Type string

Description The date when the account list users aim to finish MPD

active_mpd_monthly_goal

Type string

Description The monthly goal users of the account list are aiming to raise in the set period

active_mpd_start_at

Type string

Description The date when the account list users will start MPD

balance

Type float

Description The total converted balance of active designation accounts associated with this account list

committed

Type number

Description The monthly amount total pledged to the Account List

created_at

Type date

Description The timestamp of when this resource was created

currency

Type string

Description The currency code for the Account List, such as 'USD', 'CAD'

default_currency

Type string

Description The default currency code, 'USD'

home_country

Type string

Description The country of the Account List

last_prayer_letter_at

Type date

Description Date prayer letter last sent over MailChimp

monthly_goal

Type number

Description The monthly financial goal of the Account List

name

Type string

Description The name of the Account List

primary_appeal

Type Appeal

Description The appeal that is marked as primary

progress

Type object

Description Hash containing monthly_goal, in_hand_percent, pledged_percent, received_pledges, balance, total_pledges

received

Type number

Description The monthly amount total received to the Account List

salary_organization

Type string

Description The ID of the organization that is responsible for paying the user

staff_account_ids

Type ["string"]

Description Array of staff account ids on designation accounts for the Account List

tester

Type boolean

Description Whether or not the Account List is a testing account

total_pledges

Type float

Description The total amount of pledges donated for the Account List

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.

weeks_on_mpd

Type number

Description Number of weeks since active_mpd_start_at if active_mpd_finish_at is after current date

Relationships

coaches.data

Type ["Person"]

Description collection of coaches who have access to the account list

notification_preferences.data

Type [Notification Preference]

Description An array of Notification Preference references for the Account List

organization_accounts.data

Type [Organization Account]

Description An array of Organization Accounts connected to the Account List

primary_appeal.data

Type Appeal

Description The appeal that is marked as primary

users.data

Type ["Person"]

Description collection of users who have access to the account list

Last updated