Donation History API
POST {{baseUrl}}/donors/:donor_id/transactions?limit=25&offset=10
Get Donation History based on given request.cardID
, charityID
and donationType
are optional fields. If a Micro donation is setup, it won't show up in Donation History until the end of the month when the transaction happen. Encrypting request body is not required.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number | limit | |
offset | number | offset |
Request Body
{"fromDate"=>"2019-02-25", "toDate"=>"2020-02-25", "cardId"=>"ebee3d81-18d4-409a-8330-73db083f2cfc", "charityId"=>"ae3c5f35-084a-4df9-a2af-7e0efd512fc0", "donationType"=>"Micro", "transactionStatus"=>"SUCCESS/PENDING/FAILURE/ALL"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-openapi-clientid | string | (Required) ClientId is a unique and a mandatory ID shared while creating a project on Mastercard Developers Portal. | |
x-correlation-id | string | CorrelationId is a unique donation request ID. It is recommended to pass the x-correlation-id by the customer and to use the format "bankname_UUID" (bank name can be indicated using the first 4 digits). Maximum length of this field should be 100 alphanumeric characters. If not passed, Mastercard will generate it. | |
x-program-id | string | ProgramId is an optional field, but if a client has more than one program associated to it, then this field becomes mandatory. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"Errors":{"Error":[{"Source":"Gateway","ReasonCode":"CREATED","Description":"OAuth signatures did not match.","Recoverable":false,"Details":"null"},{"Source":"Gateway","ReasonCode":"CREATED","Description":"OAuth signatures did not match.","Recoverable":false,"Details":"null"}]}}