POST api/Billing/BillingStructureToVarAssignment

Request Information

URI Parameters

None.

Body Parameters

BillingStructureToVARDefault
NameDescriptionTypeAdditional information
POLiEntityID

globally unique identifier

None.

EntityCode

string

None.

EntityCommonName

string

None.

DefaultBillingStructureID

integer

None.

DefaultBillingStructureName

string

None.

NumberOfDaysFeeFree

integer

None.

BillingStructuresList

Collection of ListItemOfInt32

None.

Request Formats

application/json, text/json

Sample:
{
  "POLiEntityID": "f5fb28e1-b4e7-4620-91ac-2235a91fda5f",
  "EntityCode": "sample string 2",
  "EntityCommonName": "sample string 3",
  "DefaultBillingStructureID": 4,
  "DefaultBillingStructureName": "sample string 5",
  "NumberOfDaysFeeFree": 6,
  "BillingStructuresList": [
    {
      "GuidIdentity": "e85f14ed-f269-4bfd-862f-857c6b7a8054",
      "Code": 1,
      "Name": "sample string 2",
      "Tag": "sample string 3"
    },
    {
      "GuidIdentity": "e85f14ed-f269-4bfd-862f-857c6b7a8054",
      "Code": 1,
      "Name": "sample string 2",
      "Tag": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<BillingStructureToVARDefault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models.BillingStructure">
  <BillingStructuresList xmlns:d2p1="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models">
    <d2p1:ListItemOfint>
      <d2p1:Code>1</d2p1:Code>
      <d2p1:GuidIdentity>e85f14ed-f269-4bfd-862f-857c6b7a8054</d2p1:GuidIdentity>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Tag>sample string 3</d2p1:Tag>
    </d2p1:ListItemOfint>
    <d2p1:ListItemOfint>
      <d2p1:Code>1</d2p1:Code>
      <d2p1:GuidIdentity>e85f14ed-f269-4bfd-862f-857c6b7a8054</d2p1:GuidIdentity>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Tag>sample string 3</d2p1:Tag>
    </d2p1:ListItemOfint>
  </BillingStructuresList>
  <DefaultBillingStructureID>4</DefaultBillingStructureID>
  <DefaultBillingStructureName>sample string 5</DefaultBillingStructureName>
  <NumberOfDaysFeeFree>6</NumberOfDaysFeeFree>
  <EntityCode>sample string 2</EntityCode>
  <EntityCommonName>sample string 3</EntityCommonName>
  <POLiEntityID>f5fb28e1-b4e7-4620-91ac-2235a91fda5f</POLiEntityID>
</BillingStructureToVARDefault>

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

Response Information

Resource Description

ApiPostResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorCode

PostError

None.

ErrorMessage

string

None.

Result

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorCode": 0,
  "ErrorMessage": "sample string 2",
  "Result": true
}

application/xml, text/xml

Sample:
<ApiPostResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ConsoleAPI.Internal.Models">
  <ErrorCode>None</ErrorCode>
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
  <Success>true</Success>
</ApiPostResultOfboolean>