Skip to main content
GET
/
v1
/
platform
/
businesses
/
{business_id}
/
vendor-credits
List Vendor Credits
curl --request GET \
  --url https://sandbox.thredfi.com/v1/platform/businesses/{business_id}/vendor-credits/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "page_info": {
    "total_count": 123,
    "current_page": 1,
    "total_pages": 7,
    "page_size": 20
  },
  "results": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "<string>",
      "received_at": "2023-11-07T05:31:56Z",
      "vendor": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "external_id": "<string>",
        "display_name": "<string>"
      },
      "source_bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "line_items": [
        {
          "amount": 123,
          "expense_account_identifier": {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "type": "AccountId"
          },
          "tags": [
            "<string>"
          ],
          "memo": "<string>",
          "metadata": "<unknown>"
        }
      ],
      "allocations": [
        {
          "bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "bill_number": "<string>",
          "amount_cents": 123,
          "bill_outstanding_balance_cents": 123,
          "applied_at": "2023-11-07T05:31:56Z"
        }
      ],
      "tags": [
        {}
      ],
      "total_amount": 123,
      "applied_amount": 123,
      "document": {
        "url": "<string>",
        "expires_in": 123,
        "document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "file_name": "<string>",
        "file_size": 123,
        "mime_type": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "external_id": "<string>",
      "currency": "EUR"
    }
  ]
}

Authorizations

Authorization
string
header
required

Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>

Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.

Path Parameters

business_id
string
required

Query Parameters

page
integer

Page number (default: 1)

page_size
integer

Items per page (default: 20, max: 100)

received_at_end
string

Filter credits received at or before this ISO timestamp

received_at_start
string

Filter credits received at or after this ISO timestamp

Search in credit note number, external ID, and vendor name

source_bill_id
string<uuid>

Filter by source bill ID (origin tracking)

status
string

Comma-separated statuses (draft,received,applied,partially_applied,void)

vendor_external_id
string

Filter by vendor external id

vendor_id
string

Filter by vendor ID (supports comma-separated UUIDs for multiple vendors)

Response

count
integer
required

Total number of items

Example:

123

page_info
object
required
Example:
{
  "total_count": 123,
  "current_page": 1,
  "total_pages": 7,
  "page_size": 20
}
results
object[]
required