Gets a list of payment terms
Changed onLists payment terms
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes
Replaces the default response index from data to a user specific string
ie.
?index=new_index
response is wrapped
{
'new_index' : [
.....
]
}
The number of records to return for each request, default is 20
The page number to return for this request (when performing pagination), default is 1
Order the list by choosing a column and direction. Each value uses the form column|asc or column|desc.
Single sort — for example sort=number_of_days|asc.
Multiple sorts — for example
sort[]=name|asc&sort[]=number_of_days|asc.
Sorting follows the payment term table schema. Unsupported keys are ignored.
[ "number_of_days|asc" ]
Headers
The API token to be used for authentication
Used to send the XMLHttpRequest header
Response
A list of payment terms
Example response
{
"data": [
{
"num_days": 1,
"name": "NET 1",
"created_at": 134341234234,
"updated_at": 134341234234,
"archived_at": 134341234234
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 1
}
}
}Changes
- info
added the new optional
queryrequest parametersort
- info
- info
added the new optional
queryrequest parameterpage - info
added the new optional
queryrequest parameterper_page
- info