> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api-docs.papertracc.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api-docs.papertracc.com/_mcp/server.

# Get Payment Terms

GET https://api.papertracc.com/v1/configs/payment-terms

Returns every payment term in the active workspace, active and inactive. The workspace default comes first, then terms in order of `net_days`.

Requires the `can_view_payment_term` permission on the key owner's role. Available when the Invoices or Bills service is enabled for the workspace.

Reference: https://api-docs.papertracc.com/papertracc/configurations/payment-terms/get-payment-terms

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.
- `identity` header (required) — The identity for the active project.

## Servers

- `https://api.papertracc.com/v1` (Production, default)
- `https://api.papertracc.com/rc-1` (Release Candidate 1)

## Response

### 200

OK

- `data` (list of PaymentTerm, required)
- `status` (boolean, required)
- `message` (string, required)

## Errors

### 401 Unauthorized Error

The API key is missing or invalid, the key owner is no longer an active member of the organisation, or the key owner is not a member of the workspace in the `identity` header.

- `status` (boolean, required)
- `message` (string, required)
- `error_code` (enum, optional) — Machine-readable reason. Present on 402 and 403 responses.
  - Allowed values: `PERMISSION_DENIED`, `SERVICE_DISABLED`, `OPEN_API_NOT_ENABLED`
- `permission` (string, optional) — The role permission the request needs. Set when `error_code` is `PERMISSION_DENIED`.
- `service` (string, optional) — The workspace service that is turned off. Set when `error_code` is `SERVICE_DISABLED`.

### 402 Payment Required Error

The workspace's subscription plan does not include the Open API.

- `status` (boolean, required)
- `message` (string, required)
- `error_code` (enum, optional) — Machine-readable reason. Present on 402 and 403 responses.
  - Allowed values: `PERMISSION_DENIED`, `SERVICE_DISABLED`, `OPEN_API_NOT_ENABLED`
- `permission` (string, optional) — The role permission the request needs. Set when `error_code` is `PERMISSION_DENIED`.
- `service` (string, optional) — The workspace service that is turned off. Set when `error_code` is `SERVICE_DISABLED`.

### 403 Forbidden Error

Either the key owner's role does not include the permission this endpoint needs (`PERMISSION_DENIED`), or the service this endpoint belongs to is turned off for the workspace (`SERVICE_DISABLED`).

- `status` (boolean, required)
- `message` (string, required)
- `error_code` (enum, optional) — Machine-readable reason. Present on 402 and 403 responses.
  - Allowed values: `PERMISSION_DENIED`, `SERVICE_DISABLED`, `OPEN_API_NOT_ENABLED`
- `permission` (string, optional) — The role permission the request needs. Set when `error_code` is `PERMISSION_DENIED`.
- `service` (string, optional) — The workspace service that is turned off. Set when `error_code` is `SERVICE_DISABLED`.

## Types

### PaymentTerm

- `id` (string, required)
- `project_id` (string, required)
- `name` (string, required)
- `net_days` (integer, required) — Calendar days from the document date to the final due date. For a split term this is the last instalment's `net_days`.
- `is_default` (boolean, required) — The workspace default, applied to new invoices that name no term or due date and whose customer has no default term. Only one term is the default at a time.
- `is_active` (boolean, required) — Inactive terms cannot be applied to new documents. Documents that already use the term keep their schedule.
- `instalments` (list of PaymentTermRate, required) — Empty for a single due date. Otherwise two or more instalments ordered by `net_days`.
- `discount` (PaymentTermRate, required, nullable) — Early-payment discount, or null. `net_days` is the last day the discount can be taken.
- `created_at` (datetime, required) — RFC 3339 timestamp. Fractional seconds are present when the underlying value has sub-second precision and are variable-length (not padded to a fixed number of digits) - they may be absent entirely, e.g. 2025-12-29T18:00:00Z, or carry up to 9 digits, e.g. 2025-12-29T18:00:00.610806Z.

### PaymentTermRate

- `type` (enum, required) — `PERCENTAGE_RATE` reads `value` as a percentage of the document total. `FLAT_RATE` reads it as an amount in the document currency.
  - Allowed values: `PERCENTAGE_RATE`, `FLAT_RATE`
- `value` (string, required) — Decimal value serialized as a string.
- `net_days` (integer, required) — Calendar days after the document date.

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "3f6b1c2e-8d47-4a59-9c1b-2e7a5d9f4b10",
      "project_id": "spruce-demo",
      "name": "Net 30",
      "net_days": 30,
      "is_default": true,
      "is_active": true,
      "instalments": [],
      "discount": null,
      "created_at": "2026-06-18T10:00:00Z"
    },
    {
      "id": "a4d2e9f1-6b3c-4e8a-b7d5-1c9f0e2a3b47",
      "project_id": "spruce-demo",
      "name": "2/10 Net 30",
      "net_days": 30,
      "is_default": false,
      "is_active": true,
      "instalments": [],
      "discount": {
        "type": "PERCENTAGE_RATE",
        "value": "2",
        "net_days": 10
      },
      "created_at": "2026-06-18T10:00:00Z"
    },
    {
      "id": "c81e7a35-2f4d-4b6c-9a0e-5d3b7f1c8e92",
      "project_id": "spruce-demo",
      "name": "60/40 split",
      "net_days": 30,
      "is_default": false,
      "is_active": true,
      "instalments": [
        {
          "type": "PERCENTAGE_RATE",
          "value": "60",
          "net_days": 15
        },
        {
          "type": "PERCENTAGE_RATE",
          "value": "40",
          "net_days": 30
        }
      ],
      "discount": null,
      "created_at": "2026-06-18T10:00:00Z"
    }
  ],
  "status": true,
  "message": "Successfully fetched payment terms"
}
```

**SDK Code**

```python Configurations_Payment Terms_Get Payment Terms_example
import requests

url = "https://api.papertracc.com/v1/configs/payment-terms"

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Configurations_Payment Terms_Get Payment Terms_example
const url = 'https://api.papertracc.com/v1/configs/payment-terms';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Configurations_Payment Terms_Get Payment Terms_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.papertracc.com/v1/configs/payment-terms"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Configurations_Payment Terms_Get Payment Terms_example
require 'uri'
require 'net/http'

url = URI("https://api.papertracc.com/v1/configs/payment-terms")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java Configurations_Payment Terms_Get Payment Terms_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.papertracc.com/v1/configs/payment-terms")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php Configurations_Payment Terms_Get Payment Terms_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.papertracc.com/v1/configs/payment-terms', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Configurations_Payment Terms_Get Payment Terms_example
using RestSharp;

var client = new RestClient("https://api.papertracc.com/v1/configs/payment-terms");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Configurations_Payment Terms_Get Payment Terms_example
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.papertracc.com/v1/configs/payment-terms")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```