Vendor payment history

GET /api/v1/ap-approval/vendor/{vendor_id}/history

Return recent bill history for a vendor to provide context at approval time.

Operation ID: get_vendor_history_api_v1_ap_approval_vendor__vendor_id__history_get · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

vendor_id string required

Query

limit integer default: 10

Number of recent bills to return.

Responses

200 Successful Response

vendor_id string required

Vendor UUID.

vendor_name string

Resolved vendor name.

recent_bills array · VendorHistoryBill VendorHistoryBill

Most recent bills from this vendor (newest first).

6 fields
id string required

Bill UUID.

amount integer required

Bill amount in cents.

status string

Bill status.

description string

Bill description.

bill_number string

Vendor-issued bill number.

created_at string

ISO timestamp when the bill was created.

total_paid_cents integer

Sum of paid bill amounts in cents (status = paid).

bill_count integer

Total number of bills from this vendor.

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object