| Requires any of the roles: | Admin, TeamAdmin | Required permission: | ReadData |
| GET | /donations/{OwnerId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OwnerId | path | int | No | |
| Year | query | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Items | form | List<Donation> | No | |
| TotalAmount | form | long | No | |
| StatusCode | form | int | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int | No | |
| OwnerId | form | int | No | |
| OwnerCardTypeId | form | int? | No | |
| OwnerCardId | form | int? | No | |
| RecurringPaymentId | form | int? | No | |
| PayerKennitala | form | string | No | |
| PayerName | form | string | No | |
| PayerEmail | form | string | No | |
| Amount | form | int | No | |
| Currency | form | string | No | |
| PaidUTC | form | DateTime | No | |
| PaymentReference | form | string | No | |
| Status | form | string | No | |
| RefundedUTC | form | DateTime? | No | |
| TimeStampCreatedUTC | form | DateTime? | No | |
| TimeStampLastChangedUTC | form | DateTime? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /donations/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"items":[{"id":0,"ownerId":0,"ownerCardTypeId":0,"ownerCardId":0,"recurringPaymentId":0,"payerKennitala":"String","payerName":"String","payerEmail":"String","amount":0,"currency":"String","paidUTC":"0001-01-01T00:00:00.0000000","paymentReference":"String","status":"String","refundedUTC":"0001-01-01T00:00:00.0000000","timeStampCreatedUTC":"0001-01-01T00:00:00.0000000","timeStampLastChangedUTC":"0001-01-01T00:00:00.0000000"}],"totalAmount":0,"statusCode":0,"message":"String"}