KapworkKapwork Partner API
API Reference

Receivables

Receivables endpoint reference

List Receivables

GET /v1/receivables

Returns a paginated list of receivables for your organization.

Query Parameters

ParameterTypeRequiredDescription
vendor_idUUIDNoFilter by vendor
debtor_idUUIDNoFilter by debtor
statusstringNoFilter by status. Without this parameter, returns all statuses
verified_sincestringNoall or ISO8601 timestamp (default: 24 hours ago)
expand[]stringNoInclude history and/or metadata
history_limitintegerNoMaximum history entries (default: 10)
pageintegerNoPage number (default: 1)
limitintegerNoItems per page (default: 100, max: 500)

Response

{
  "object": "list",
  "data": [
    {
      "id": "rcv_550e8400e29b41d4a716446655440000",
      "object": "receivable",
      "vendor_receivable_id": "INV-2024-001",
      "vendor": {
        "id": "550e8400-e29b-41d4-a716-446655440001",
        "name": "Acme Corp"
      },
      "debtor": {
        "id": "550e8400-e29b-41d4-a716-446655440002",
        "name": "BigBuyer Inc"
      },
      "amount_cents": 150000,
      "currency": "USD",
      "receivable_date": "2026-01-01",
      "due_date": "2026-02-15",
      "status": "APPROVED",
      "portal_status": "APPROVED FOR PAYMENT",
      "po_number": "PO-2024-001",
      "detected_at": "2026-01-05T10:00:00.000Z",
      "updated_at": "2026-01-07T14:30:00.000Z",
      "estimated_next_update_at": "2026-01-08T09:35:00.000Z"
    }
  ],
  "has_more": true,
  "total_count": 1234
}

Examples

# Receivables updated in last 24 hours
curl "https://api.kapwork.com/v1/receivables" \
  -H "Authorization: Bearer $KAPWORK_API_KEY"

# Filter by vendor
curl "https://api.kapwork.com/v1/receivables?vendor_id=XXX" \
  -H "Authorization: Bearer $KAPWORK_API_KEY"

# Filter by vendor and debtor
curl "https://api.kapwork.com/v1/receivables?vendor_id=XXX&debtor_id=YYY" \
  -H "Authorization: Bearer $KAPWORK_API_KEY"

# All receivables (no time filter)
curl "https://api.kapwork.com/v1/receivables?verified_since=all" \
  -H "Authorization: Bearer $KAPWORK_API_KEY"

# Include history
curl "https://api.kapwork.com/v1/receivables?expand[]=history" \
  -H "Authorization: Bearer $KAPWORK_API_KEY"

Get Receivable

GET /v1/receivables/:id

Returns a single receivable with history and metadata included by default.

Path Parameters

ParameterTypeDescription
idstringReceivable ID with rcv_ prefix (e.g., rcv_550e8400e29b41d4a716446655440000)

Query Parameters

ParameterTypeDescription
history_limitintegerMaximum history entries (default: 10)

Response

{
  "id": "rcv_550e8400e29b41d4a716446655440000",
  "object": "receivable",
  "vendor_receivable_id": "INV-2024-001",
  "vendor": {
    "id": "550e8400-e29b-41d4-a716-446655440001",
    "name": "Acme Corp"
  },
  "debtor": {
    "id": "550e8400-e29b-41d4-a716-446655440002",
    "name": "BigBuyer Inc"
  },
  "amount_cents": 150000,
  "currency": "USD",
  "status": "APPROVED",
  "portal_status": "APPROVED FOR PAYMENT",
  "receivable_date": "2026-01-01",
  "due_date": "2026-02-15",
  "detected_at": "2026-01-05T10:00:00.000Z",
  "updated_at": "2026-01-07T14:30:00.000Z",
  "estimated_next_update_at": "2026-01-08T09:35:00.000Z",
  
  "history": [
    {
      "changed_at": "2026-01-07T14:30:00.000Z",
      "changes": {
        "status": { "from": "PENDING", "to": "APPROVED" },
        "portal_status": { "from": "SUBMITTED", "to": "APPROVED FOR PAYMENT" }
      }
    }
  ],
  
  "metadata": {
    "payment_terms": "NET30",
    "supplier_code": "SUP-001234"
  }
}

Example

curl "https://api.kapwork.com/v1/receivables/rcv_550e8400e29b41d4a716446655440000" \
  -H "Authorization: Bearer $KAPWORK_API_KEY"

Receivable Object

FieldTypeDescription
idstringUnique identifier with rcv_ prefix
objectstring"receivable"
vendor_receivable_idstringVendor's receivable number (nullable)
vendorobjectVendor info (id, name)
debtorobjectDebtor info (id, name)
amount_centsintegerAmount in cents
currencystringCurrency code (e.g., USD)
receivable_datestringReceivable date (YYYY-MM-DD)
due_datestringDue date (nullable)
statusstringNormalized status
portal_statusstringOriginal status from portal
po_numberstringPurchase order number (nullable)
detected_atstringWhen Kapwork first detected this receivable (ISO8601)
updated_atstringLast update timestamp (ISO8601)
estimated_next_update_atstringNext scheduled update (nullable)
historyarrayChange history (included by default on single, requires expand[] on list)
metadataobjectPortal metadata (included by default on single, requires expand[] on list)

History Object

FieldTypeDescription
changed_atstringChange timestamp (ISO8601)
changesobjectField changes: { "field": { "from": old, "to": new } }

Status Values

StatusDescription
PENDINGNot yet ready for processing
APPROVEDReady for payment or factoring
PAIDPayment completed
SOLDFactored to third party
DISPUTEDRejected, canceled, or on hold
ACKNOWLEDGEDReceived but status not mapped

Status Reference →

On this page