Events
This document lays out the specification of interacting with the Qgiv Custom events system, allowing for reading, writing, and updating events.
Event Properties
- Events
- Event (collection)
- id (int)
- title (string)
- prices
- notify_body
- notifyEmail
- packages (collection)
- package (collection)
- id (int)
- earlyBirdDate (date)
- earlyBirdDiscount (date)
- earlyBirdDiscountType (int)
- discounts (collection)
- discount (collection)
- discountedCost (double)
- quantityToStart (int)
- quantityToEnd (int)
- fields (collection)
- field(collection)
- id (int)
- special (string)
- onOwnLine (string)
- isEventWideField (bool)
- packageId (int)
- inputType (int)
- title (sting)
- display_title (string)
- inputData (string)
- state (bool)
- (bool)
- (bool)
- displayBlock (bool)
- fields (collection)
- field (collection)
- id (int)
- special (string)
- onOwnLine (string)
- isEventWideField (bool)
- packageId (int)
- inputType (int)
- title (sting)
- display_title (string)
- inputData (string)
- state (bool)
- (bool)
- isRequired (bool)
- displayBlock (bool)
- promoCodes (collection)
- promoCode (collection)
- id (int)
- code (string)
- fee (double)
- feeType (int)
- maximum (int)
- useCount (int)
- startDate (date)
- expirationDate (date)
- event (int)
- packages (int)
- (bool)
- organization
- exportData
- DirectValue
- content
- soldOutContent
- value
- maxPerPurchase
- totalAvailable
- receiptSubject
- receiptContent
- receiptFromName
- receiptFromEmail
- locationName (string)
- startDate (date)
- startTime (date)
- endDate (date)
- endTime (string)
- address (string)
- addressCity (string)
- addressState (string)
- addressZip (int)
- addressMapLink (string)
- sort (int)
- permitDonation (bool)
- notificationSubject
- removeDate
- removeFromKioskDate
GET : https://secure.qgiv.com/admin/api/events/list
Returns all custom events associated with the current form or organization
<events>
<event id="1234">
<prices>25.00,50.00,75.00,100.00,125.00,150.00,175.00,200.00</prices>
<notify_body></notify_body>
<notifyEmail>testing@test.com</notifyEmail>
<toRemoveDonation>0000-00-00 00:00:00</toRemoveDonation>
<beginEvent>2030-01-01 01:00:00</beginEvent>
<endEvent>2030-01-01 01:00:00</endEvent>
<packages>
<package id="1263718" eventId="1234">
<defaultCount>0</defaultCount>
<created>2013-07-09 11:12:02</created>
<lastAction>2013-07-09 11:12:06</lastAction>
<earlyBirdDate>0000-00-00 00:00:00</earlyBirdDate>
<earlyBirdDiscount>0</earlyBirdDiscount>
<earlyBirdDiscountType>1</earlyBirdDiscountType>
<discounts>
<discount>
<discountedCost>50.00</discountedCost>
<quantityToStart>10</quantityToStart>
<quantityToEnd>10</quantityToEnd>
</discount>
</discounts>
<fields>
<field id="42089" eventId="1234">
<special></special>
<onOwnLine1>n</onOwnLine1>
<isEventWideField>1</isEventWideField>
<packageId>0</packageId>
<inputType>0</inputType>
<title>New Question</title>
<display_title>Where would you like the tour to be?</display_title>
<inputData></inputData>
<state>1</state>
<sort>1</sort>
<isRequired>0</isRequired>
<displayBlock>0</displayBlock>
</field>
</fields>
<ticketsSold>6</ticketsSold>
<title>Test package</title>
<value>12.00</value>
<participantsPerPackage>1</participantsPerPackage>
<packageDescription>This is a test package</packageDescription>
<soldOutContent></soldOutContent>
<directValue>12.00</directValue>
<totalAvailable>0</totalAvailable>
<maxPerPurchase>10</maxPerPurchase>
<sort>1</sort>
<state>1</state>
<isPrivatePackage>0</isPrivatePackage>
</package>
</packages>
<fields>
<field id="42089" eventId="1234">
<special></special>
<onOwnLine1>n</onOwnLine1>
<isEventWideField>1</isEventWideField>
<packageId>0</packageId>
<inputType>0</inputType>
<title>New Question</title>
<display_title>Where would you like the tour to be?</display_title>
<inputData></inputData>
<state>1</state>
<sort>1</sort>
<isRequired>0</isRequired>
<displayBlock>0</displayBlock>
</field>
</fields>
<promoCodes>
<promoCode id="1020">
<code>HALFOFF</code>
<fee>50.00</fee>
<feeType>2</feeType>
<maximum>0</maximum>
<useCount>0</useCount>
<startDate>2014-02-05 00:00:00</startDate>
<expirationDate>2014-05-31 01:00:00</expirationDate>
<event>1234</event>
<packages>1263718,</packages>
<state>1</state>
</promoCode>
</promoCodes>
<organization>9</organization>
<title>first test event</title>
<exportData></exportData>
<directValue>0.00</directValue>
<content type="text/html">This is a test event.</content>
<soldOutContent></soldOutContent>
<value>0.00</value>
<maxPerPurchase>0</maxPerPurchase>
<totalAvailable>0</totalAvailable>
<receiptSubject>Your %Ename% Registration Confirmation</receiptSubject>
<receiptContent>
<p>Receipt Data</p>
\n
</receiptContent>
<receiptFromName>John Doe</receiptFromName>
<receiptFromEmail>testing@test.com</receiptFromEmail>
<notificationSubject></notificationSubject>
<startDate>2030-01-01</startDate>
<startTime>01:00:00</startTime>
<endDate>2030-01-01</endDate>
<endTime>01:00:00</endTime>
<removeDate>2030-01-01 00:00:00</removeDate>
<removeFromKioskDate>2030-01-01 00:00:00</removeFromKioskDate>
<addressName>Qgiv</addressName>
<address>50 Lake Morton Dr.</address>
<addressCity>Lakeland</addressCity>
<addressState>FL</addressState>
<addressZip>33333</addressZip>
<class>new</class>
<locationMapLink>None</locationMapLink>
<sort>1</sort>
<permitDonations>0</permitDonations>
<displayOnMobile>1</displayOnMobile>
<state>1</state>
<displayOnKiosk>0</displayOnKiosk>
<isPrivateEvent>0</isPrivateEvent>
</event>
</events>{
"events": [
{
"id": "1234",
"prices": "25.00,50.00,75.00,100.00,125.00,150.00,175.00,200.00",
"notify_body": [],
"notifyEmail": "testing@test.com",
"toRemoveDonation": "0000-00-00 00:00:00",
"beginEvent": "2030-01-01 01:00:00",
"endEvent": "2030-01-01 01:00:00",
"packages": {
"package": {
"id": "1263718",
"eventId": "1234",
"defaultCount": "0",
"created": "2013-07-09 11:12:02",
"lastAction": "2013-07-09 11:12:06",
"earlyBirdDate": "0000-00-00 00:00:00",
"earlyBirdDiscount": "0",
"earlyBirdDiscountType": "1",
"discounts": {
"discount": {
"discountedCost": "50.00",
"quantityToStart": "10",
"quantityToEnd": "10"
},
...
},
"fields": {
"field": {
"id": "42089",
"eventId": "1234",
"special": [],
"onOwnLine1": "n",
"isEventWideField": "1",
"packageId": "0",
"inputType": "0",
"title": "New Question",
"display_title": "Where would you like the tour to be?",
"inputData": [],
"state": "1",
"sort": "1",
"isRequired": "0",
"displayBlock": "0"
},
...
},
"ticketsSold": "6",
"title": "Test package",
"value": "12.00",
"participantsPerPackage": "1",
"packageDescription": "This is a test package",
"soldOutContent": [],
"directValue": "12.00",
"totalAvailable": "0",
"maxPerPurchase": "10",
"sort": "1",
"state": "1",
"isPrivatePackage": "0"
},
...
},
"fields": {
"field": {
"id": "42089",
"eventId": "1234",
"special": [],
"onOwnLine1": "n",
"isEventWideField": "1",
"packageId": "0",
"inputType": "0",
"title": "New Question",
"display_title": "Where would you like the tour to be?",
"inputData": [],
"state": "1",
"sort": "1",
"isRequired": "0",
"displayBlock": "0"
},
...
},
"promoCodes": {
"promoCode": {
"id": "1020",
"code": "HALFOFF",
"fee": "50.00",
"feeType": "2",
"maximum": "0",
"useCount": "0",
"startDate": "2014-02-05 00:00:00",
"expirationDate": "2014-05-31 01:00:00",
"event": "1234",
"packages": "1263718, ...",
"state": "1"
},
...
},
"organization": "9",
"title": "first test event",
"exportData": [],
"directValue": "0.00",
"content": "This is a test event.",
"soldOutContent": [],
"value": "0.00",
"maxPerPurchase": "0",
"totalAvailable": "0",
"receiptSubject": "Your %Ename% Registration Confirmation",
"receiptContent": {"p": "Receipt Data"},
"receiptFromName": "John Doe",
"receiptFromEmail": "testing@test.com",
"notificationSubject": [],
"startDate": "2030-01-01",
"startTime": "01:00:00",
"endDate": "2030-01-01",
"endTime": "01:00:00",
"removeDate": "2030-01-01 00:00:00",
"removeFromKioskDate": "2030-01-01 00:00:00",
"addressName": "Qgiv",
"address": "50 Lake Morton Dr.",
"addressCity": "Lakeland",
"addressState": "FL",
"addressZip": "33333",
"locationMapLink": "None",
"sort": "1",
"permitDonations": "0",
"displayOnMobile": "1",
"state": "1",
"displayOnKiosk": "0",
"isPrivateEvent": "0"
}
...
]
}GET : /events/[id]
Returns the event requested, individually specified by ID.
<event id="36801" formId="78904">
<prices></prices>
<notify_body></notify_body>
<notifyEmail>test@testing.com</notifyEmail>
<toRemoveDonation>0000-00-00 00:00:00</toRemoveDonation>
<created>2013-07-09 11:10:25</created>
<lastAction>2013-10-18 15:06:57</lastAction>
<beginEvent>2030-01-01 01:00:00</beginEvent>
<endEvent>2030-01-01 01:00:00</endEvent>
<packages>
<package id="1263718" eventId="36801">
<defaultCount>0</defaultCount>
<created>2013-07-09 11:12:02</created>
<lastAction>2013-07-09 11:12:06</lastAction>
<earlyBirdDate>0000-00-00 00:00:00</earlyBirdDate>
<earlyBirdDiscount>0</earlyBirdDiscount>
<earlyBirdDiscountType>1</earlyBirdDiscountType>
<discounts>
<discount/>
</discounts>
<fields>
<field/>
</fields>
<ticketsSold>6</ticketsSold>
<title>Test package</title>
<value>12.00</value>
<participantsPerPackage>1</participantsPerPackage>
<packageDescription>This is a test package</packageDescription>
<soldOutContent></soldOutContent>
<directValue>12.00</directValue>
<totalAvailable>0</totalAvailable>
<maxPerPurchase>10</maxPerPurchase>
<sort>1</sort>
<state>1</state>
<isPrivatePackage>0</isPrivatePackage>
</package>
</packages>
<fields>
<field/>
</fields>
<promoCodes>
<promoCode/>
</promoCodes>
<organization>9</organization>
<title>first test event</title>
<exportData></exportData>
<directValue>0.00</directValue>
<content type="text/html">This is a test event.</content>
<soldOutContent></soldOutContent>
<value>0.00</value>
<maxPerPurchase>0</maxPerPurchase>
<totalAvailable>0</totalAvailable>
<receiptSubject>Your %Ename% Registration Confirmation</receiptSubject>
<receiptContent> Content of the receipt</receiptContent>
<receiptFromName>John Doe</receiptFromName>
<receiptFromEmail>test@testing.com</receiptFromEmail>
<notificationSubject></notificationSubject>
<startDate>2030-01-01</startDate>
<startTime>01:00:00</startTime>
<endDate>2030-01-01</endDate>
<endTime>01:00:00</endTime>
<removeDate>2030-01-01 00:00:00</removeDate>
<removeFromKioskDate>2030-01-01 00:00:00</removeFromKioskDate>
<addressName>Qgiv House</addressName>
<address>1212 freeway Drive</address>
<addressCity>Lakeland</addressCity>
<addressState>FL</addressState>
<addressZip>33333</addressZip>
<class>new</class>
<locationMapLink>None</locationMapLink>
<sort>1</sort>
<permitDonations>0</permitDonations>
<displayOnMobile>1</displayOnMobile>
<state>1</state>
<displayOnKiosk>0</displayOnKiosk>
<isPrivateEvent>0</isPrivateEvent>
</event>{
"event": {
"id": "1234",
"prices": "",
"notify_body": "",
"notifyEmail": "testing@test.com",
"toRemoveDonation": "0000-00-00 00:00:00",
"beginEvent": "2030-01-01 01:00:00",
"endEvent": "2030-01-01 01:00:00",
"packages": {
{
"id": "1263718",
"defaultCount": "0",
"earlyBirdDate": "0000-00-00 00:00:00",
"earlyBirdDiscount": "0",
"earlyBirdDiscountType": "1",
"discounts": [],
"fields": [],
"ticketsSold": 6,
"eventId": "36801",
"title": "Test package",
"value": "12.00",
"participantsPerPackage": "1",
"packageDescription": "This is a test package",
"soldOutContent": "",
"directValue": "12.00",
"totalAvailable": "0",
"maxPerPurchase": "10",
"sort": "1",
"state": "1",
"isPrivatePackage": "0"
},
...
},
"fields": {
"field": {
"id": "42089",
"eventId": "1234",
"special": [],
"onOwnLine1": "n",
"isEventWideField": "1",
"packageId": "0",
"inputType": "0",
"title": "New Question",
"display_title": "Where would you like the tour to be?",
"inputData": [],
"state": "1",
"sort": "1",
"isRequired": "0",
"displayBlock": "0"
},
...,
}
"promoCodes": {
"promoCode": {
"id": "1020",
"code": "HALFOFF",
"fee": "50.00",
"feeType": "2",
"maximum": "0",
"useCount": "0",
"startDate": "2014-02-05 00:00:00",
"expirationDate": "2014-05-31 01:00:00",
"event": "1234",
"packages": "1263718, ...",
"state": "1"
},
...
},
"organization": "9",
"formId": "78904",
"title": "first test event",
"exportData": "",
"directValue": "0.00",
"content": "This is a test event",
"soldOutContent": "",
"value": "0.00",
"maxPerPurchase": "0",
"totalAvailable": "0",
"receiptSubject": "Your %Ename% Registration Confirmation",
"receiptContent": "Content of the receipt",
"receiptFromName": "John Doe",
"receiptFromEmail": "testing@test.com",
"notificationSubject": "",
"startDate": "2030-01-01",
"startTime": "01:00:00",
"endDate": "2030-01-01",
"endTime": "01:00:00",
"removeDate": "2030-01-01 00:00:00",
"removeFromKioskDate": "2030-01-01 00:00:00",
"addressName": "QGiv House",
"address": "1212 Freeway Drive",
"addressCity": "Lakeland",
"addressState": "FL",
"addressZip": "33333",
"class": "new",
"locationMapLink": "None",
"sort": "1",
"permitDonations": "0",
"displayOnMobile": "1",
"state": "1",
"displayOnKiosk": "0",
"isPrivateEvent": "0"
}
}POST : https://secure.qgiv.com/admin/api/events/[id]
Updates the event with the values passed in, returning the updated event
Input
<events>
<event id = "1234">
<title> This is a new title</title>
<packages>
<package id = "1263718" eventId = "1234">
<earlyBirdDiscount>15.00</earlyBirdDiscount>
<discounts>
<discount>
<discountedCost>20.00</discountedCost>
</discount>
</discounts>
<value>5.00</value>
</package>
</packages>
<isPrivateEvent>1</isPrivateEvent>
</event>
</events>"events": [
{
"title" : "This is a new title",
"id": "1234",
"packages": {
"package": {
"id": "1263718",
"eventId": "1234",
"earlyBirdDiscount": "15.00",
"discounts": {
"discount": {
"discountedCost": "20.00",
}
},
"value": "5.00",
},
},
"isPrivateEvent": "1"
}
]
}Output
<events>
<event id="1234">
<prices>25.00,50.00,75.00,100.00,125.00,150.00,175.00,200.00</prices>
<notify_body></notify_body>
<notifyEmail>testing@test.com</notifyEmail>
<toRemoveDonation>0000-00-00 00:00:00</toRemoveDonation>
<beginEvent>2030-01-01 01:00:00</beginEvent>
<endEvent>2030-01-01 01:00:00</endEvent>
<packages>
<package id="1263718" eventId="1234">
<defaultCount>0</defaultCount>
<created>2013-07-09 11:12:02</created>
<lastAction>2013-07-09 11:12:06</lastAction>
<earlyBirdDate>0000-00-00 00:00:00</earlyBirdDate>
<earlyBirdDiscount>15.00</earlyBirdDiscount>
<earlyBirdDiscountType>1</earlyBirdDiscountType>
<discounts>
<discount>
<discountedCost>20.00</discountedCost>
<quantityToStart>10</quantityToStart>
<quantityToEnd>10</quantityToEnd>
</discount>
</discounts>
<fields>
<field id="42089" eventId="1234">
<special></special>
<onOwnLine1>n</onOwnLine1>
<isEventWideField>1</isEventWideField>
<packageId>0</packageId>
<inputType>0</inputType>
<title>New Question</title>
<display_title>Where would you like the tour to be?</display_title>
<inputData></inputData>
<state>1</state>
<sort>1</sort>
<isRequired>0</isRequired>
<displayBlock>0</displayBlock>
</field>
</fields>
<ticketsSold>6</ticketsSold>
<title>Test package</title>
<value>5.00</value>
<participantsPerPackage>1</participantsPerPackage>
<packageDescription>This is a test package</packageDescription>
<soldOutContent></soldOutContent>
<directValue>12.00</directValue>
<totalAvailable>0</totalAvailable>
<maxPerPurchase>10</maxPerPurchase>
<sort>1</sort>
<state>1</state>
<isPrivatePackage>0</isPrivatePackage>
</package>
</packages>
<fields>
<field id="42089" eventId="1234">
<special></special>
<onOwnLine1>n</onOwnLine1>
<isEventWideField>1</isEventWideField>
<packageId>0</packageId>
<inputType>0</inputType>
<title>New Question</title>
<display_title>Where would you like the tour to be?</display_title>
<inputData></inputData>
<state>1</state>
<sort>1</sort>
<isRequired>0</isRequired>
<displayBlock>0</displayBlock>
</field>
</fields>
<promoCodes>
<promoCode id="1020">
<code>HALFOFF</code>
<fee>50.00</fee>
<feeType>2</feeType>
<maximum>0</maximum>
<useCount>0</useCount>
<startDate>2014-02-05 00:00:00</startDate>
<expirationDate>2014-05-31 01:00:00</expirationDate>
<event>1234</event>
<packages>1263718,</packages>
<state>1</state>
</promoCode>
</promoCodes>
<organization>9</organization>
<title>This is a new title</title>
<exportData></exportData>
<directValue>0.00</directValue>
<content type="text/html">This is a test event.</content>
<soldOutContent></soldOutContent>
<value>0.00</value>
<maxPerPurchase>0</maxPerPurchase>
<totalAvailable>0</totalAvailable>
<receiptSubject>Your %Ename% Registration Confirmation</receiptSubject>
<receiptContent>
<p>Receipt Data</p>
\n
</receiptContent>
<receiptFromName>John Doe</receiptFromName>
<receiptFromEmail>testing@test.com</receiptFromEmail>
<notificationSubject></notificationSubject>
<startDate>2030-01-01</startDate>
<startTime>01:00:00</startTime>
<endDate>2030-01-01</endDate>
<endTime>01:00:00</endTime>
<removeDate>2030-01-01 00:00:00</removeDate>
<removeFromKioskDate>2030-01-01 00:00:00</removeFromKioskDate>
<addressName>Qgiv</addressName>
<address>50 Lake Morton Dr.</address>
<addressCity>Lakeland</addressCity>
<addressState>FL</addressState>
<addressZip>33333</addressZip>
<class>new</class>
<locationMapLink>None</locationMapLink>
<sort>1</sort>
<permitDonations>0</permitDonations>
<displayOnMobile>1</displayOnMobile>
<state>1</state>
<displayOnKiosk>0</displayOnKiosk>
<isPrivateEvent>1</isPrivateEvent>
</event>
</events>{
"events": [
{
"id": "1234",
"prices": "25.00,50.00,75.00,100.00,125.00,150.00,175.00,200.00",
"notify_body": [],
"notifyEmail": "testing@test.com",
"toRemoveDonation": "0000-00-00 00:00:00",
"beginEvent": "2030-01-01 01:00:00",
"endEvent": "2030-01-01 01:00:00",
"packages": {
"package": {
"id": "1263718",
"eventId": "1234",
"defaultCount": "0",
"created": "2013-07-09 11:12:02",
"lastAction": "2013-07-09 11:12:06",
"earlyBirdDate": "0000-00-00 00:00:00",
"earlyBirdDiscount": "15.00",
"earlyBirdDiscountType": "1",
"discounts": {
"discount": {
"discountedCost": "20.00",
"quantityToStart": "10",
"quantityToEnd": "10"
},
...
},
"fields": {
"field": {
"id": "42089",
"eventId": "1234",
"special": [],
"onOwnLine1": "n",
"isEventWideField": "1",
"packageId": "0",
"inputType": "0",
"title": "New Question",
"display_title": "Where would you like the tour to be?",
"inputData": [],
"state": "1",
"sort": "1",
"isRequired": "0",
"displayBlock": "0"
},
...
},
"ticketsSold": "6",
"title": "Test package",
"value": "5.00",
"participantsPerPackage": "1",
"packageDescription": "This is a test package",
"soldOutContent": [],
"directValue": "12.00",
"totalAvailable": "0",
"maxPerPurchase": "10",
"sort": "1",
"state": "1",
"isPrivatePackage": "0"
},
...
},
"fields": {
"field": {
"id": "42089",
"eventId": "1234",
"special": [],
"onOwnLine1": "n",
"isEventWideField": "1",
"packageId": "0",
"inputType": "0",
"title": "New Question",
"display_title": "Where would you like the tour to be?",
"inputData": [],
"state": "1",
"sort": "1",
"isRequired": "0",
"displayBlock": "0"
},
...
},
"promoCodes": {
"promoCode": {
"id": "1020",
"code": "HALFOFF",
"fee": "50.00",
"feeType": "2",
"maximum": "0",
"useCount": "0",
"startDate": "2014-02-05 00:00:00",
"expirationDate": "2014-05-31 01:00:00",
"event": "1234",
"packages": "1263718, ...",
"state": "1"
},
...
},
"organization": "9",
"title": "This is a new title",
"exportData": [],
"directValue": "0.00",
"content": "This is a test event.",
"soldOutContent": [],
"value": "0.00",
"maxPerPurchase": "0",
"totalAvailable": "0",
"receiptSubject": "Your %Ename% Registration Confirmation",
"receiptContent": {"p": "Receipt Data"},
"receiptFromName": "John Doe",
"receiptFromEmail": "testing@test.com",
"notificationSubject": [],
"startDate": "2030-01-01",
"startTime": "01:00:00",
"endDate": "2030-01-01",
"endTime": "01:00:00",
"removeDate": "2030-01-01 00:00:00",
"removeFromKioskDate": "2030-01-01 00:00:00",
"addressName": "Qgiv",
"address": "50 Lake Morton Dr.",
"addressCity": "Lakeland",
"addressState": "FL",
"addressZip": "33333",
"locationMapLink": "None",
"sort": "1",
"permitDonations": "0",
"displayOnMobile": "1",
"state": "1",
"displayOnKiosk": "0",
"isPrivateEvent": "1"
}
...
]
}* denotes a required field
** denotes a required field based on Event settings
*** denotes a field that is only required when submitting Form level API credentials