POST v1/SystemSettings/TermsList

Request Information

URI Parameters

None.

Body Parameters

TermRequest
NameDescriptionTypeAdditional information
TermsCode

string

None.

TermsName

string

None.

DaysTillDue

integer

None.

Active

boolean

None.

AllowPartialPayments

boolean

None.

PayInAdvance

string

None.

PaymentTermsID

integer

None.

ExternalAccountingID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TermsCode": "sample string 1",
  "TermsName": "sample string 2",
  "DaysTillDue": 1,
  "Active": true,
  "AllowPartialPayments": true,
  "PayInAdvance": "sample string 3",
  "PaymentTermsID": 4,
  "ExternalAccountingID": "sample string 5"
}

application/xml, text/xml

Sample:
<TermRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TermsCode>sample string 1</TermsCode>
  <TermsName>sample string 2</TermsName>
  <DaysTillDue>1</DaysTillDue>
  <Active>true</Active>
  <AllowPartialPayments>true</AllowPartialPayments>
  <PayInAdvance>sample string 3</PayInAdvance>
  <PaymentTermsID>4</PaymentTermsID>
  <ExternalAccountingID>sample string 5</ExternalAccountingID>
</TermRequest>

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

Response Information

Resource Description

Collection of TermResponse
NameDescriptionTypeAdditional information
TermsCode

string

None.

TermsName

string

None.

DaysTillDue

integer

None.

Active

boolean

None.

AllowPartialPayments

boolean

None.

PayInAdvance

string

None.

PaymentTermsID

integer

None.

ExternalAccountingID

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TermsCode": "sample string 1",
    "TermsName": "sample string 2",
    "DaysTillDue": 1,
    "Active": true,
    "AllowPartialPayments": true,
    "PayInAdvance": "sample string 3",
    "PaymentTermsID": 4,
    "ExternalAccountingID": "sample string 5"
  },
  {
    "TermsCode": "sample string 1",
    "TermsName": "sample string 2",
    "DaysTillDue": 1,
    "Active": true,
    "AllowPartialPayments": true,
    "PayInAdvance": "sample string 3",
    "PaymentTermsID": 4,
    "ExternalAccountingID": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTermResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TermResponse>
    <TermsCode>sample string 1</TermsCode>
    <TermsName>sample string 2</TermsName>
    <DaysTillDue>1</DaysTillDue>
    <Active>true</Active>
    <AllowPartialPayments>true</AllowPartialPayments>
    <PayInAdvance>sample string 3</PayInAdvance>
    <PaymentTermsID>4</PaymentTermsID>
    <ExternalAccountingID>sample string 5</ExternalAccountingID>
  </TermResponse>
  <TermResponse>
    <TermsCode>sample string 1</TermsCode>
    <TermsName>sample string 2</TermsName>
    <DaysTillDue>1</DaysTillDue>
    <Active>true</Active>
    <AllowPartialPayments>true</AllowPartialPayments>
    <PayInAdvance>sample string 3</PayInAdvance>
    <PaymentTermsID>4</PaymentTermsID>
    <ExternalAccountingID>sample string 5</ExternalAccountingID>
  </TermResponse>
</ArrayOfTermResponse>