Create (Register) User

POST {{baseUrl}}/donors

This API will be used for creating (registering) new users on platform as a Registerd Donor.A card will be added once. Second time, the initial card Id will be returned.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"}, "userName"=>"John.Doe@mail.com", "userType"=>"sed reprehenderit m", "name"=>{"firstName"=>"John", "lastName"=>"Doe", "honorificPrefix"=>"Mr", "honorificSuffix"=>"Jr."}, "emails"=>[{"type"=>"home", "value"=>"John.Doe@mail.com"}, {"type"=>"home", "value"=>"John.Doe@mail.com"}], "locale"=>"en-us", "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"=>"anim ", "region"=>"Huntington"}], "password"=>"9U8HPyLZIU876saSDx", "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

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: OK

{"donorId":"652ce9ff-fa5f-4e9f-8151-c73fa20088f7","userName":"John.Doe@mail.com"}