| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /donation |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OwnerId | body | int | No | |
| OwnerCardTypeId | body | int? | No | |
| OwnerCardId | body | int? | No | |
| RecurringPaymentId | body | int? | No | |
| PayerKennitala | body | string | No | |
| PayerName | body | string | No | |
| PayerEmail | body | string | No | |
| Amount | body | int | No | |
| Currency | body | string | No | |
| PaidUTC | body | DateTime? | No | |
| PaymentReference | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Item | form | Donation | 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 .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /donation HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"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"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"item":{"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"},"statusCode":0,"message":"String"}