POST api/Card_info
Get Card info use card_id
Request Information
URI Parameters
None.
Body Parameters
{"card_id": "900109363","user_id":"6","token":""}
input_data| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
id number for row |
integer |
None. |
| clinic_id | integer |
None. |
|
| user_id | integer |
None. |
|
| Move_Side |
left=0 rigth =1 |
integer |
None. |
| card_id | string |
None. |
|
| token | string |
None. |
|
| secuirty_level | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"clinic_id": 2,
"user_id": 3,
"Move_Side": 4,
"card_id": "sample string 5",
"token": "sample string 6",
"secuirty_level": "sample string 7"
}
text/xml
Sample:
<input_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cards_api"> <Move_Side>4</Move_Side> <card_id>sample string 5</card_id> <clinic_id>2</clinic_id> <id>1</id> <secuirty_level>sample string 7</secuirty_level> <token>sample string 6</token> <user_id>3</user_id> </input_data>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
{ "data" [{"id": 9,"type_card": 1,"description": "Bronz","expiry_month": 12,"sales_price": 15000.0,"max_limite": 7500000.0,"use_qty": 6,"discount" 10,"date_active": "1900-01-01T00:00:00","date_expier": "1900-01-01T00:00:00","client_name": "شةدا عبدالواحيد مصطفي","birthday": 1982-01-15T00:00:00"}],"rowcount": 1,"status": true,"msg_error": ""}
outdata| Name | Description | Type | Additional information |
|---|---|---|---|
| data | DataTable |
None. |
|
| rowcount |
if get data then return count row else return the id row affected |
integer |
None. |
| status | boolean |
None. |
|
| msg_error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": null,
"rowcount": 1,
"status": true,
"msg_error": "sample string 3"
}
text/xml
Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cards_api"> <data i:nil="true" /> <msg_error>sample string 3</msg_error> <rowcount>1</rowcount> <status>true</status> </outdata>