POST api/ValueAddedService/SaveVASBillingStructures

Request Information

URI Parameters

None.

Body Parameters

VASBillingStructure
NameDescriptionTypeAdditional information
VASBillingStructureID

globally unique identifier

None.

Name

string

None.

IsDefault

boolean

None.

VASBillingStructureType

VASBillingStructureType

None.

VASBillingChargeTypes

VASBillingChargeTypes

None.

VASBillingCharge

VASBillingCharge

None.

IncludesGSTInFee

boolean

None.

IsDeleted

boolean

None.

GSTPercentage

decimal number

None.

Tiers

Collection of VASBillingStructureTier

None.

ValueAddedServices

ValueAddedServiceItem

None.

IsTransactionBundle

boolean

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'DefaultVASBillingStructure' with type 'ConsoleAPI.Internal.Models.ValueAddedServices.VASBillingStructure'. Path 'ValueAddedServices'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'DefaultVASBillingStructure' with type 'ConsoleAPI.Internal.Models.ValueAddedServices.VASBillingStructure'. Path 'ValueAddedServices'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'ConsoleAPI.Internal.Models.ValueAddedServices.ValueAddedServiceItem' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'ConsoleAPI.Internal.Models.ValueAddedServices.ValueAddedServiceItem' contains cycles and cannot be serialized if reference tracking is disabled.

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 'VASBillingStructure'.

Response Information

Resource Description

CommonResult
NameDescriptionTypeAdditional information
ErrorMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorMessage": "sample string 1",
  "Result": {}
}

application/xml, text/xml

Sample:
<CommonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models.Common">
  <ErrorMessage>sample string 1</ErrorMessage>
  <Result />
</CommonResult>