| URL | https://api_host/v1/term |
| Supported Methods | GET |
| Description | Returns a firm's payment terms |
Accepted Query Formats
| GET /term[.format] | retrieve all terms |
| GET /term/1[.format] | retrieve term with ID = 1 |
Examples
Retrieve a single payment term record in XML format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_host/v1/term/187.xml
Retrieve all payment terms in XML format:
$ curl -i --header "VERSACCOUNTS_AUTHORIZATION:409696900e0b3f5a4297e3cd5823f734f0095e66" https://api_host/v1/term.xml
<?xml version="1.0" encoding="UTF-8"?>
<terms type="array">
<term>
<id type="integer">187</id>
<discount type="integer">0</discount>
<discount-period type="integer">0</discount-period>
<net type="integer">30</net>
<text-string>0% 0 / Net 30 days</text-string>
</term>
<term>
<id type="integer">188</id>
<discount type="integer">0</discount>
<discount-period type="integer">0</discount-period>
<net type="integer">0</net>
<text-string>0% 0 / Net 0 days</text-string>
</term>
<term>
<id type="integer">189</id>
<discount type="integer">1</discount>
<discount-period type="integer">10</discount-period>
<net type="integer">30</net>
<text-string>1% 10 / Net 30 days</text-string>
</term>
<term>
<id type="integer">190</id>
<discount type="integer">0</discount>
<discount-period type="integer">0</discount-period>
<net type="integer">15</net>
<text-string>0% 0 / Net 15 days</text-string>
</term>
</terms>
Comments and Suggestions
0 comments
Please sign in to leave a comment.
Related articles