POST api/buildings/{buildingId}/vendorchargebacks
Create building vendor chargeback
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| buildingId |
|
integer |
Required |
Body Parameters
AddBuildingVendorChargeBackViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VendorId |
|
integer |
Required |
| ChargeCodeId |
|
integer |
Required |
Request Formats
application/json, text/json
{
"vendorId": 1,
"chargeCodeId": 2
}
application/xml, text/xml
<AddBuildingVendorChargeBackViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <ChargeCodeId>2</ChargeCodeId> <VendorId>1</VendorId> </AddBuildingVendorChargeBackViewModel>
application/x-www-form-urlencoded
Response Information
Resource Description
BuildingVendorChargebackViewModel
BuildingVendorChargebackViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
IdBuildingVendorChargeback |
integer |
None. |
| BuildingId |
BuildingId |
integer |
None. |
| ChargeCodeId |
ChargeCodeId |
integer |
None. |
| DisplayCode |
DisplayCode |
string |
None. |
| ChargeCodeDescription |
ChargeCodeDescription |
string |
None. |
| VendorId |
VendorId |
integer |
None. |
| VendorName |
VendorName |
string |
None. |
Response Formats
application/json, text/json
{
"id": 1,
"buildingId": 2,
"chargeCodeId": 3,
"displayCode": "sample string 4",
"chargeCodeDescription": "sample string 5",
"vendorId": 6,
"vendorName": "sample string 7"
}
application/xml, text/xml
<BuildingVendorChargebackViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <BuildingId>2</BuildingId> <ChargeCodeDescription>sample string 5</ChargeCodeDescription> <ChargeCodeId>3</ChargeCodeId> <DisplayCode>sample string 4</DisplayCode> <Id>1</Id> <VendorId>6</VendorId> <VendorName>sample string 7</VendorName> </BuildingVendorChargebackViewModel>