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

KeyDatatypeRequiredDescription
limitnumberlimit
offsetnumberoffset

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

KeyDatatypeRequiredDescription
x-openapi-clientidstring(Required) ClientId is a unique and a mandatory ID shared while creating a project on Mastercard Developers Portal.
x-correlation-idstringCorrelationId 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-idstringProgramId is an optional field, but if a client has more than one program associated to it, then this field becomes mandatory.
Content-Typestring
Acceptstring

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"}]}}