About PaymentTerm
Payment terms can be applied to Vendors and Customers. When applied to a Vendor, payment terms define when payment should be sent. When applied to a Customer, payment terms define how soon payment is expected.
Note: The due date is set automatically if the Bills or Invoices are created via the UI. You need to set the due date manually when creating Bills or Invoices via the API.
Create
Request
<API_URL_EndPoint>/Crud/Create/PaymentTerm.json
data={
"obj" : {
"entity" : "PaymentTerm",
"name" : "Net 30",
"netDue" : 30
}
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"obj" : {
"entity" : "PaymentTerm",
"id" : "00p01ESYPLIDXVKApab6",
"name" : "Net 30",
"netDue" : 30
}
}
Read
Request
<API_URL_EndPoint>/Crud/Read/PaymentTerm.json
data={
"id" : "00p01ESYPLIDXVKApab6"
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"obj" : {
"entity" : "PaymentTerm",
"id" : "00p01ESYPLIDXVKApab6",
"name" : "Net 30",
"netDue" : 30
}
}
Update
Request
<API_URL_EndPoint>/Crud/Update/PaymentTerm.json
data={
"obj" : {
"entity" : "PaymentTerm",
"id" : "00p01ESYPLIDXVKApab6",
"name" : "Net 35",
"netDue" : 35
}
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"obj" : {
"entity" : "PaymentTerm",
"id" : "00p01ESYPLIDXVKApab6",
"name" : "Net 35",
"netDue" : 35
}
}