Update User API
PUT {{baseUrl}}/donors/:donor_id
This API will be used for updating user on platform. Entire request body should be encrypted.
Request Body
{"acceptedConsents"=>{"marketingEmailSubscribed"=>"Y", "privacyNoticeVersion"=>"PN.2-#-xr.en-us.99.01", "tncVersion"=>"TC.##r#12.EN-Us.99.99"}, "emails"=>[{"type"=>"home", "value"=>"John.Doe@mail.com"}, {"type"=>"home", "value"=>"John.Doe@mail.com"}], "locale"=>"en-us", "name"=>{"firstName"=>"John", "lastName"=>"Doe", "honorificPrefix"=>"Mr", "honorificSuffix"=>"Jr."}, "username"=>"test1203@yopmail.com", "addresses"=>[{"type"=>"work", "country"=>"USA", "streetAddress"=>"7832 West Elm Street", "formatted"=>"7832 West Elm Street Huntington Station, NY 11746", "locality"=>"Rly Station", "postalCode"=>"cillu", "region"=>"Huntington"}, {"type"=>"work", "country"=>"USA", "streetAddress"=>"7832 West Elm Street", "formatted"=>"7832 West Elm Street Huntington Station, NY 11746", "locality"=>"Rly Station", "postalCode"=>"paria", "region"=>"Huntington"}], "password"=>"WzzX3GjXAmjYCLdz", "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"}
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: OK
{"donorId":"652ce9ff-fa5f-4e9f-8151-c73fa20088f7","userName":"John.Doe@mail.com"}