Update Donation

PUT {{baseUrl}}/donors/:donor_id/setups/:donation_setup_id

Update Monthly, Micro or Round-up donation for a registered user. Encrypting request body is not required.

Request Body

{"amount"=>"5", "maxCap"=>"50", "authPayerResponse"=>{"authentication"=>{"3ds"=>{"authenticationToken"=>"kHyn+7YFi1EUAREAAAAvNUe6Hv8=", "transactionId"=>"9f343e5d-fc28-4818-88d4-17a35fb7dea9", "version"=>"1.0.2", "acsEci"=>"es"}, "3ds2"=>{"transactionStatus"=>"Y", "protocolVersion"=>"2.2.2"}}}}

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

{"donationSetupId":"4a520af0-8e47-44cd-8925-9f3ecd09baff","donorId":"652ce9ff-fa5f-4e9f-8151-c73fa20088f7","setupStatus":"ACTIVE","transactionId":"3311e859-3ee4-4155-a640-8cae447c27ca","transactionMessage":"Transaction APPROVED.","transactionStatus":"SUCCESS"}