Инструменты страницы
Request for order registration with pre-authorization
Passing bonus point amount in order registration request with pre-authorization
The number of bonus points to be debited can be passed in the request for registration of the order. The payment page of the store must support the display of the number of points to be debited. In this case, when registering an order, in addition to the standard amount in money to be debited (in the amount parameter), an additional parameter must be passed:
sbrf_spasibo:amount_bonus
– for the Sberbank Spasibo loyalty program;sbrf_sbermiles:amount_bonus
– for the SberMiles loyalty program.
The parameter value contains the amount of bonuses to be debited in kopecks.
For example:
The total order amount is 200 rubles. To pay half of the amount with money and half with bonus points, you must pass the following parameter values:
amount = 10000
(to debit 100 rubles from the client's bank card),sbrf_spasibo: amount_bonus = 10000
(to debit 100 bonus points from the client's bonus account).
OR
amount = 10000
(to debit 100 rubles from the client's bank card),- sbrf_sbermiles:amount_bonus = 10000 (to debit 100 bonus points from the client's bonus account).
In terms of other parameters, the request is similar to the standard order registration request.
Request example:
https://3dsec.sberbank.ru/payment/rest/register.do?amount=66600¤cy=643&language=ru&orderNumber=287222222299&password=xxxxx&userName=xxxxx&returnUrl=https://server/applicaton_context/finish.html&jsonParams={"sbrf_spasibo:amount_bonus":"100"}
Response example:
{"orderId":"bc2dd5f9-22b6-42ad-b6ae-0bf87873d75b","formUrl":"https://3dsec.sberbank.ru/payment/merchants/test/payment_ru.html?mdOrder=bc2dd5f9-22b6-42ad-b6ae-0bf87873d75b"}
Entering bonus point amount on payment page
In order to provide the client with the opportunity to specify the number of bonus points on the payment page, the order registration request should NOT contain a parameter with the number of bonuses to be debited. The payment page of the store must support the input of the amount of bonuses.
In this case, the request is similar to the standard order registration request.