Last update 2020-09-28
This method is used in EPS - LDT project. Method is designed to scan credit card , validate pin code and get unused balance. Also, the modifications was made to return the status of partner .
Call is performed via HTTP GET.
https://ws2_server_address/r_card2/user_id/card/pin
Name | Description |
---|---|
user_id | Webservice API key obtained from administrator |
card | credit card number |
pin | pin code |
Name | Description |
---|---|
status | Web service status |
description | Status description |
kreditas | Card account balance |
partner | Is method caller partner or company internal usage 0 - Internal 1 - Partner |
im_kodas | Company code |
pvm_kodas | VAT code |
pavad | Company name |
adresas | Company address |
kodas_gs | Which product groups shall not be accepted. Universal code 99 may be returned , that means only fuel is allowed. Fuel group numbers is under 10. 3 - Gasoline A95 4 - Diesel 5 - Gasoline A98 7 - Dyed diesel 8 - Gas 9 - Ad-Blue 10 - Gas balloons 20 - Road toll 21 - GSM top-up cards 25 - Press 30 - Car wash / Parking 40 - Oil 50 - Accessories 60 - Drinks 65 - Cofee 70 - Food 75 - Fast food 80 - Tabacco 90 - Other 99 - All products |
Name | Description |
---|---|
00 | Ok |
01 | Card not found |
02 | Wrong pin code |
03 | Card is blocked |
98 | No rights to call method |
99 | Wrong user_id |
Card should be processed only if result is 00 and amount is not bigger than account balance kreditas.
Test request.
http://213.197.188.43/s2/ws2/r_card2/dqmEBbQk/9440001620032133/2133