Required role: | REGISUserRole |
POST | /DynamicsCRM/Donation/Upsert |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
regent_id | body | int | No | |
soft_credit_regent_id | body | int? | No | |
soft_credit_second_regent_id | body | int? | No | |
import_id | body | int? | No | |
is_contact | body | bool | No | |
is_account | body | bool | No | |
name | body | string | No | |
description | body | string | No | |
total_pledge_amount | body | decimal | No | |
receipt_amount | body | decimal | No | |
currency | body | string | No | |
receipting_organization | body | string | No | |
type | body | string | No | |
gift_date | body | DateTime? | No | |
cheque_number | body | string | No | |
do_not_receipt | body | bool | No | |
is_complete | body | bool | No | |
anonymous | body | bool | No | |
gift_batch | body | string | No | |
source | body | string | No | |
channel | body | string | No | |
designation | body | string | No | |
designation_description | body | string | No | |
campaign | body | string | No | |
campaign_code | body | string | No | |
campaign_description | body | string | No | |
campaign_start_date | body | DateTime? | No | |
campaign_end_date | body | DateTime? | No | |
campaign_goal | body | decimal? | No | |
appeal | body | string | No | |
appeal_code | body | string | No | |
appeal_description | body | string | No | |
appeal_start_date | body | DateTime? | No | |
appeal_end_date | body | DateTime? | No | |
appeal_goal | body | decimal? | No | |
added_date | body | DateTime? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Donation/Upsert HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
regent_id: 0,
soft_credit_regent_id: 0,
soft_credit_second_regent_id: 0,
import_id: 0,
is_contact: False,
is_account: False,
name: String,
description: String,
total_pledge_amount: 0,
receipt_amount: 0,
currency: String,
receipting_organization: String,
type: String,
gift_date: 0001-01-01,
cheque_number: String,
do_not_receipt: False,
is_complete: False,
anonymous: False,
gift_batch: String,
source: String,
channel: String,
designation: String,
designation_description: String,
campaign: String,
campaign_code: String,
campaign_description: String,
campaign_start_date: 0001-01-01,
campaign_end_date: 0001-01-01,
campaign_goal: 0,
appeal: String,
appeal_code: String,
appeal_description: String,
appeal_start_date: 0001-01-01,
appeal_end_date: 0001-01-01,
appeal_goal: 0,
added_date: 0001-01-01
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }