/api/v1/businesses/:id/settings/invoicesx-api-keySandbox + liveRead invoice underpayment tolerance defaults
Return the business default invoice underpayment tolerance configuration.
When to use it
Use before creating invoices that inherit business defaults.
| Field | Location | Required | Description | Example / default |
|---|---|---|---|---|
| id | path | Yes | Business ID. | - |
Common errors
- 401: Missing or invalid API key.
- 404: Requested resource does not exist or is not owned by the business.
Sample response
json{
"businessId": "biz_123",
"invoiceUnderpaymentToleranceBps": 50,
"invoiceUnderpaymentToleranceMaxUsd": "0.50"
}cURL example
bashcurl -X GET "https://api.paychainhq.io/api/v1/businesses/biz_123/settings/invoices" \
-H "Content-Type: application/json" \
-H "x-api-key: pk_live_your_business_key"Node.js example
tsconst response = await fetch('https://api.paychainhq.io/api/v1/businesses/biz_123/settings/invoices', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'pk_live_your_business_key',
},
});
const payload = await response.json();
console.log(payload);