POST api/cardGroups
Save a card group
Request Information
URI Parameters
None.
Body Parameters
card group to be saved
CardGroup| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
Primary key id |
integer |
None. |
| Tender |
The accounting code for exports |
string |
None. |
| Name |
Name of card group |
string |
None. |
| GLCode |
Accounting GL Code |
string |
None. |
| IsCommission |
Is this card group for Commission |
boolean |
None. |
| AccountingCategoryID | integer |
None. |
|
| Cards | Collection of Card |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"tender": "sample string 2",
"name": "sample string 3",
"glCode": "sample string 4",
"isCommission": true,
"accountingCategoryID": 5,
"cards": [
{
"$id": "2",
"id": 1,
"name": "sample string 2",
"glCode": "sample string 3",
"cardGroupID": 1,
"accountingCategoryID": 4,
"isProvider": true,
"cardGroupName": "sample string 6"
},
{
"$ref": "2"
}
]
}
application/xml, text/xml
Sample:
<CardGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Sales">
<AccountingCategoryID>5</AccountingCategoryID>
<Cards>
<Card>
<AccountingCategoryID>4</AccountingCategoryID>
<CardGroupID>1</CardGroupID>
<CardGroupName>sample string 6</CardGroupName>
<GLCode>sample string 3</GLCode>
<ID>1</ID>
<IsProvider>true</IsProvider>
<Name>sample string 2</Name>
</Card>
<Card>
<AccountingCategoryID>4</AccountingCategoryID>
<CardGroupID>1</CardGroupID>
<CardGroupName>sample string 6</CardGroupName>
<GLCode>sample string 3</GLCode>
<ID>1</ID>
<IsProvider>true</IsProvider>
<Name>sample string 2</Name>
</Card>
</Cards>
<GLCode>sample string 4</GLCode>
<ID>1</ID>
<IsCommission>true</IsCommission>
<Name>sample string 3</Name>
<Tender>sample string 2</Tender>
</CardGroup>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.