Custom Amounts
This document lays out the specification of interacting with the Qgiv Custom Amounts system, allowing for reading, writing, and updating custom amounts.
Custom Amount Properties
- id (int)
- value (double)
- title (string)
- description (string)
- sort (int)
GET : https://secure.qgiv.com/admin/api/amounts/list
Returns all custom amounts associated with the current form or organization
<amounts>
<amount id="7742">
<value>100.00</value>
<title>Bronze</title>
<description>Bronze Donation</description>
<state>1</state>
<sort>0</sort>
</amount>
</amounts>{
"amounts":[
{
"id":"7742",
"value":"100.00",
"title":"Bronze",
"description":"Bronze Donation",
"state":"1",
"sort":"0"
}
...
]
}GET : /amounts/[id]
Returns the custom amount requested, individually specified by ID.
<amount id="7742">
<value>100.00</value>
<title>Bronze</title>
<description>Bronze Donation</description>
<state>1</state>
<sort>0</sort>
</amount>{
"amount":[
{
"id":"7742",
"value":"100.00",
"title":"Bronze",
"description":"Bronze Donation",
"state":"1",
"sort":"0"
}
]
}POST : /amounts/create
Creates one or more custom amounts with the values passed in, returning the complete custom amounts with the new ID
Input
<amounts>
<amount>
<value>100.00</value>
<title>Bronze</title>
<description>Bronze Donation</description>
</amount>
</amounts>{"amounts":[
{
"value":"100.00",
"title":"Bronze",
"description":"Bronze Donation"
}
...
]}Output
<amounts>
<amount id="7742">
<value>100.00</value>
<title>Bronze</title>
<description>Bronze Donation</description>
<state>1</state>
<sort>0</sort>
</amount>
</amounts>{
"amounts":[
{
"id":"7742",
"value":"100.00",
"title":"Bronze",
"description":"Bronze Donation",
"state":"1",
"sort":"0"
}
...
]
}POST : https://secure.qgiv.com/admin/api/amounts/[id]
Updates the custom amount with the values passed in, returning the updated custom amount
Input
<amounts>
<amount id="7742">
<value>50.00</value>
</amount>
</amounts>{"amounts":[
{
"id":"7742",
"value":"50.00",
}
...
]}Output
<amounts>
<amount id="7742">
<value>50.00</value>
<title>Bronze</title>
<description>Bronze Donation</description>
<state>1</state>
<sort>0</sort>
</amount>
</amounts>{
"amounts":[
{
"id":"7742",
"value":"50.00",
"title":"Bronze",
"description":"Bronze Donation",
"state":"1",
"sort":"0"
}
...
]
}* 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