PUT V2/odata/PaymentCondition({key})

Updates PaymentCondition entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.PaymentCondition
NameDescriptionTypeAdditional information
PaymentConditionId

Gets or sets PaymentConditionId

integer

None.

Code

Gets or sets code

string

None.

Name

Gets or sets name

string

None.

Description

Gets or sets description

string

None.

PaymentConditionType

Gets or sets payment condition type

QicsUnity.Api.Areas.V2.Models.PaymentConditionType

None.

PaymentTerm

Gets or sets payment term

integer

None.

IsDefault

Gets or sets a value indicating whether payment condition is default

boolean

None.

CompanyId

Gets or sets CompanyId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentConditionId": 1,
  "Code": "sample 2",
  "Name": "sample 3",
  "Description": "sample 4",
  "PaymentConditionType": 0,
  "PaymentTerm": 5,
  "IsDefault": true,
  "CompanyId": 7
}

application/xml, text/xml

Sample:
<PaymentCondition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <Code>sample 2</Code>
  <CompanyId>7</CompanyId>
  <Description>sample 4</Description>
  <IsDefault>true</IsDefault>
  <Name>sample 3</Name>
  <PaymentConditionId>1</PaymentConditionId>
  <PaymentConditionType>DirectDebit</PaymentConditionType>
  <PaymentTerm>5</PaymentTerm>
</PaymentCondition>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.