POST v1/SystemSettings/TermsList

Return System Terms List

This is secure method and requires below attributes in header

Authorization: Midnight Authorize Token

Request Information

URI Parameters

None.

Body Parameters

Term Input Request

TermRequest
NameDescriptionTypeAdditional information
TermsCode

Terms Code

string

None.

TermsName

Terms Name

string

None.

DaysTillDue

Days Till Due

integer

None.

Active

Active

boolean

None.

AllowPartialPayments

Allow Partial Payments

boolean

None.

PayInAdvance

Pay In Advance

string

None.

PaymentTermsID

Payment Terms ID (unique Key)

integer

None.

ExternalAccountingID

External Accounting ID

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

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>