POST v1/Generic/InsertPaymentTerms
Creates new payment request.
This is secure method and requires below attributes in header
Authorization: PRC Authorize Token | Authorization: Midnight Authorize Token | |
MISKEY: MIS Key |
Request Information
URI Parameters
None.
Body Parameters
InsertPaymentTerms object representing new payment terms.
TermRequestName | Description | Type | Additional 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:
Response Information
Response Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string>sample string 1</string>