POST api/transaction-types/CreateTransactionTypes
Request Information
URI Parameters
None.
Body Parameters
TransactionTypesDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| isdebit | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"isdebit": true
}
application/xml, text/xml
Sample:
<TransactionTypesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models.DTOs"> <ID>1</ID> <IsDebit>true</IsDebit> <Name>sample string 2</Name> </TransactionTypesDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelOfTransactionTypesDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | TransactionTypesDTO |
None. |
|
| Success | boolean |
None. |
|
| StatusCode | integer |
None. |
|
| Message | string |
None. |
|
| ErrorMessage | string |
None. |
|
| Metadata | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"id": 1,
"name": "sample string 2",
"isdebit": true
},
"Success": true,
"StatusCode": 2,
"Message": "sample string 3",
"ErrorMessage": "sample string 4",
"Metadata": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfTransactionTypesDTOb1afPy6h xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models.Response">
<ErrorMessage>sample string 4</ErrorMessage>
<Message>sample string 3</Message>
<Metadata />
<StatusCode>2</StatusCode>
<Success>true</Success>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox_api.Models.DTOs">
<d2p1:ID>1</d2p1:ID>
<d2p1:IsDebit>true</d2p1:IsDebit>
<d2p1:Name>sample string 2</d2p1:Name>
</Data>
</ResponseModelOfTransactionTypesDTOb1afPy6h>