If the relevant permissions are enabled, the store may request the balance of Sberbank's «Spasibo» points for a specific user. The request used for this is «getInfo.do».
Only POST is supported.
In this document, the following data type conventions are used when describing request and response parameters:
Request parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
|
AN..30 | Yes | Login issued to the Store upon integration with the Payment Gateway. |
|
AN..30 | Yes | Password issued to the Store upon integration with the Payment Gateway. |
|
N12…19 | One of the parameters is required: pan or bindingId . |
Payment card number. |
|
AN..255 | One of the parameters is required: pan or bindingId . |
Identifier of the binding created earlier. |
Response parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
|
ANS..3 | No |
Error code. |
|
|
No |
|
|
N..20 | No |
The minimum amount of bonus points that can be used along with payment for an order. |
|
N..20 | No |
The maximum amount of bonus points that can be used along with payment for an order. Within one payment, the user cannot spend more points than specified in this parameter. |
|
AN..512 | No |
Bonus program code within the system. |
Error codes:
Value | Description |
---|---|
0 | The request has been processed without system errors. |
5 | Access denied. |
7 | System error. |
Request example:
userName=test-api&password=testPwd&pan=4111111111111111
Response example:
{ "errorCode": "0", "errorMessage": "Success", "loyaltyOperations": [ { "serviceName": "sbrf_spasibo", "minAmount": 0, "maxAmount": 199999485556 } ] }