Get all recurring donations
This GET
operation retrieves all recurring donations associated with a particular donor by passing the donorId
as a query parameter. You can also combine donorId
with groupId
by using the &
separator such as ?donorId=12345&groupId=ASDS
. If successful, you receive an HTTP response code of 200
and a JSON
response containing the recurring donations.
See HTTP response codes for other response codes. |
GET /sqs/api/recurringDonations?<donorId>&<groupId>
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
accept: application/JSON
permissions: SQS_RECURRING_DONATION_READ_PERMISSION
Query parameters
There are two possible query parameters.
Parameter | Description | ||
---|---|---|---|
|
The MSISDN of the donor subscriber.
|
||
|
The identifier that was given to the group upon creation. |
JSON response
The JSON
response includes the information about the recurring donations.
See recurring donation data type descriptions for more details on the fields in the JSON request and response. |
{
"_embedded": {
"recurringDonations": [
{
"id" : "E5B412",
"donorPlanId" : 123,
"groupId" : "ASDS",
"donorId" : "4564563",
"planName" : "SharePlan",
"created": "2019-08-07T15:01:58.000+0000",
"updated": "2019-08-07T15:01:58.000+0000",
"_links": {
"self": {
"href": "http://localhost:8096/sqs/recurringDonations/E5B412"
}
}
}
]
},
"_links": {
"self": {
"href": "http://localhost:8096/sqs/recurringDonations?page=0&size=100"
}
},
"page": {
"size": 100,
"totalElements": 1,
"totalPages": 1,
"number": 0
}
}
SQS recurring donations data type descriptions
Field | Type | Description | ||
---|---|---|---|---|
|
string |
The auto-assigned ID given to the recurring donation upon creation. |
||
|
string |
The MSISDN of the donor subscriber.
|
||
|
integer |
The ID of the donor’s shareable plan. |
||
|
string |
The unique ID of the group. Group IDs are auto-assigned upon creation. |
||
|
string |
The date and time at which the group was created.
|
||
|
string |
The date and time at which the group was updated.
|
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success! |
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
recurring donation not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. example
|
||||
|
failed processing (after passing validation). example
Example 1. SQS response codes
|
||||
|
internal error |
||||
|
request rejected due to overload |