Get User API
GET {{baseUrl}}/donors/:donor_id
This API will be used for fetching user on platform. Entire response body is encrypted and it should be decrypted to view the actual response.
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. | |
Accept | string |
RESPONSES
status: OK
{"acceptedConsents":{"marketingEmailSubscribed":"Y","privacyNoticeVersion":"PN.2-#-xr.en-us.99.01","tncVersion":"TC.##r#12.EN-Us.99.99"},"addresses":[{"type":"work","country":"USA","streetAddress":"7832 West Elm Street","formatted":"7832 West Elm Street Huntington Station, NY 11746","locality":"Rly Station","postalCode":"deser","region":"Huntington"},{"type":"work","country":"USA","streetAddress":"7832 West Elm Street","formatted":"7832 West Elm Street Huntington Station, NY 11746","locality":"Rly Station","postalCode":"deser","region":"Huntington"}],"emails":[{"type":"home","value":"John.Doe@mail.com"},{"type":"home","value":"John.Doe@mail.com"}],"locale":"en-us","name":{"lastName":"Doe","firstName":"John","honorificPrefix":"Mr","honorificSuffix":"Jr."},"personalInformation":{"identifications":[{"country":"MX","type":"GovtId","value":"16367222222"},{"country":"MX","type":"GovtId","value":"16367222222"}]},"phoneNumbers":[{"type":"home","value":"+16367222222"},{"type":"home","value":"+16367222222"}],"timezone":"UTC-06:00","title":"Mr","userName":"John.Doe@mail.com","userType":"laborum e"}