POST api/savecardtype
save cart_type
Request Information
URI Parameters
None.
Body Parameters
card_type| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| card_type | integer |
None. |
|
| description | string |
None. |
|
| use_qty | integer |
None. |
|
| active | integer |
None. |
|
| price | decimal number |
None. |
|
| max_limite | integer |
None. |
|
| expiry_month | integer |
None. |
|
| discount | integer |
None. |
|
| id_clinic | string |
None. |
|
| searchc | string |
None. |
|
| secuirty_level | string |
None. |
|
| pic1 | string |
None. |
|
| pic2 | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"card_type": 2,
"description": "sample string 3",
"use_qty": 4,
"active": 5,
"price": 6.1,
"max_limite": 7,
"expiry_month": 8,
"discount": 9,
"id_clinic": "sample string 10",
"searchc": "sample string 11",
"secuirty_level": "sample string 12",
"pic1": "sample string 13",
"pic2": "sample string 14"
}
text/xml
Sample:
<card_type xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cards_api"> <active>5</active> <card_type>2</card_type> <description>sample string 3</description> <discount>9</discount> <expiry_month>8</expiry_month> <id>1</id> <id_clinic>sample string 10</id_clinic> <max_limite>7</max_limite> <pic1>sample string 13</pic1> <pic2>sample string 14</pic2> <price>6.1</price> <searchc>sample string 11</searchc> <secuirty_level>sample string 12</secuirty_level> <use_qty>4</use_qty> </card_type>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
{ "data" [],"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>