API reference › Finance › Payables
Retrieve payables by provider ID
GET /v1/finance/payables/by-provider/{provider_id}
- Scope
finance:read- Roles
- admin, scheduler
Fetches all matching payables for a specific provider with filtering and sorting options (no pagination).
Parameters
Path parameters
| Name | Type | Description |
|---|---|---|
provider_id required | string | Provider ID Example |
Every call also sends Authorization and X-Tenant-ID; see Getting started.
Example request
curl "https://api.fetchfido.ai/v1/finance/payables/by-provider/{provider_id}" \
-H "Authorization: Bearer $FIDO_API_KEY" \
-H "X-Tenant-ID: $FIDO_TENANT_ID"Try it
Responses
200 Payables retrieved successfully (non-paginated list)
Payables retrieved successfully (non-paginated list)
{
"success": true,
"message": "Payables retrieved successfully.",
"data": [
{
"is_paid": 0,
"paid_label": "Paid in payable",
"provider": {
"id": "string",
"name": "Example name",
"email": "user@example.com",
"logo": "https://cdn.example.com/image.png",
"onlineStatus": "online"
},
"paymentTerms": {
"id": 1,
"label": "Example label",
"value": "string"
},
"issueDate": "2026-01-15",
"dueDate": "2026-01-15",
"approvedAt": "2026-01-15 09:00:00",
"approvalDate": "2026-01-15",
"taxPercentage": 0,
"discountAmount": 0,
"subtotal": 0,
"paidAmount": 0,
"balanceDue": 0,
"assignmentIds": [
null
],
"shiftIds": [
null
]
}
]
}Response fields (26)
3 top-level fields; 1 hold nested fields, listed below.
| Field | Type | Description |
|---|---|---|
success | boolean | Example |
message | string | Example |
data | array of object (23 nested) |
Nested fields
data 23 fields
| Field | Type | Description |
|---|---|---|
data[].is_paid | number | Example |
data[].paid_label | string or null | Example |
data[].provider | object or null | |
data[].provider.id | string | |
data[].provider.name | string | Example |
data[].provider.email | string | Example |
data[].provider.logo | string | Example |
data[].provider.onlineStatus | string | Example |
data[].paymentTerms | object or null | |
data[].paymentTerms.id | integer or null | Example |
data[].paymentTerms.label | string or null | Example |
data[].paymentTerms.value | string or null | |
data[].issueDate | string or null | Example |
data[].dueDate | string or null | Example |
data[].approvedAt | string or null | Example |
data[].approvalDate | string or null | Example |
data[].taxPercentage | number or null | Example |
data[].discountAmount | number | Example |
data[].subtotal | number | Example |
data[].paidAmount | number | Example |
data[].balanceDue | number | Example |
data[].assignmentIds | array of any or null | |
data[].shiftIds | array of any or null |
401 Not signed in
Missing, invalid or expired API key.
{
"success": false,
"message": "Invalid API key. Org and user tier keys must send an X-Tenant-ID header naming the organization the key was issued for.",
"errors": null,
"code": "API_KEY_MISSING"
}Response fields (4)
| Field | Type | Description |
|---|---|---|
success | boolean | Example |
message | string | Example |
errors | any or null | Null on this status. |
code | string | Machine-readable reason, for branching on in client code. One of: |
403 Not allowed
Scope, tenant, IP allow-list or RBAC check failed.
{
"success": false,
"message": "You don't have permission to access this endpoint. This API key is missing the 'finance:read' scope.",
"errors": null,
"code": ""
}Response fields (4)
| Field | Type | Description |
|---|---|---|
success | boolean | Example |
message | string | Example |
errors | any or null | Null on this status. |
code | string | Always empty on this status. Example |
404 Not found
Provider not found or no payables found
{
"success": false,
"message": "No payables found for this provider."
}Response fields (2)
| Field | Type | Description |
|---|---|---|
success | boolean | Example |
message | string | Example |
429 Too many requests
Rate limit exceeded. See Retry-After.
{
"success": false,
"message": "You've exceeded this API key's rate limit of 120 requests per minute. Try again in 37 seconds.",
"errors": null,
"code": "RATE_LIMITED"
}Response fields (4)
| Field | Type | Description |
|---|---|---|
success | boolean | Example |
message | string | Example |
errors | any or null | Null on this status. |
code | string | Machine-readable reason, for branching on in client code. One of: |
500 Server error
Internal Server Error
{
"success": false,
"message": "An unexpected error occurred."
}Response fields (2)
| Field | Type | Description |
|---|---|---|
success | boolean | Example |
message | string | Example |