POST api/chargecodeexternalaccess

Creates a charge code external access record

Request Information

URI Parameters

None.

Body Parameters

Object that contains the required parameters to create an external access charge code

ChargeCodeExternalAccessCreateViewModel
NameDescriptionTypeAdditional information
ChargeCodeTypeId

ChargeCodeTypeId

integer

Required

Application

Application

string

Required

Request Formats

application/json, text/json

Sample:
{
  "chargeCodeTypeId": 1,
  "application": "sample string 1"
}

application/xml, text/xml

Sample:
<ChargeCodeExternalAccessCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels">
  <Application>sample string 1</Application>
  <ChargeCodeTypeId>1</ChargeCodeTypeId>
</ChargeCodeExternalAccessCreateViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChargeCodeExternalAccessCreateViewModel'.

Response Information

Resource Description

ChargeCodeExternalAccessModel
NameDescriptionTypeAdditional information
ExternalAccessId

integer

None.

ChargeCodeTypeId

integer

None.

Application

string

None.

Response Formats

application/json, text/json

Sample:
{
  "externalAccessId": 1,
  "chargeCodeTypeId": 2,
  "application": "sample string 3"
}

application/xml, text/xml

Sample:
<ChargeCodeExternalAccessModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.Core.Models">
  <Application>sample string 3</Application>
  <ChargeCodeTypeId>2</ChargeCodeTypeId>
  <ExternalAccessId>1</ExternalAccessId>
</ChargeCodeExternalAccessModel>