---
title: r_card2
url: 'https://gidas.saver.lt/api/r_card2'
markdown: 'https://gidas.saver.lt/api/r_card2.md'
date: '2025-12-16'
description: '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/p…'
taxonomy:
  category:
    - docs
---

[](#)  [ Pradžia ](https://gidas.saver.lt/)     [ API ](https://gidas.saver.lt/api)      r\_card2    

# r\_card2

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

#### Mandatory parameters

| Name | Description |
|---|---|
| **user\_id** | Webservice API key obtained from administrator |
| **card** | credit card number |
| **pin** | pin code |

#### Web service returns

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

#### Web service status list

| 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**.

 [ ](https://gidas.saver.lt/api/s_mail) [](https://gidas.saver.lt/api/r_card4)

---

## Navigation

- Parent: [API](https://gidas.saver.lt/api.md)
- Previous: [s_mail](https://gidas.saver.lt/api/s_mail.md)
- Next: [r_card4](https://gidas.saver.lt/api/r_card4.md)
