OneBill icon

OneBill

Interact with the OneBill billing and subscription management API

Subscriber → Get Documents

AI-generated

Summary

Retrieve documents associated with a subscriber identified by their account number, optionally returning only metadata without the document files.

Inputs

  • Account Number (required) — The account number of the subscriber for whom documents are being fetched.
  • Output Data Field Name (required) — The field name in which to place the binary file data for each document; ignored if metadata-only output is selected.
  • Metadata Only — If true, returns only document metadata without including the document files themselves.

Output shape

a list of document records for the specified subscriber, each containing metadata and, unless metadata-only is selected, binary file data under the specified output field name

When 'Metadata Only' is set to true, the output excludes inline binary files, reducing response size.

Examples

Example 1: Retrieve all documents for subscriber 12345 including file data

Provide Account Number = '12345' and Output Data Field Name = 'data', Metadata Only = false (default). The node outputs documents with metadata and file contents.

Example 2: Retrieve only document metadata for subscriber 12345

Provide Account Number = '12345', Output Data Field Name is ignored, and set Metadata Only to true. The node outputs only document metadata without file contents.

Links

Discussion