Workflow-run
Task
Document
- GETDocument metadata
- GETFull document details
- GETDocument CSV content
- POSTUnzip file and return PDFs
- POSTGenerate CSV document
- POSTPresigned URL for upload
- POSTClassify document (async)
- POSTSplit document (async)
- POSTCreate documents from splits
- POSTLegacy extract document (async)
- POSTDocument extraction (async)
- POSTRender document body
- POSTGenerate document from template (async)
- POSTTransform JSON to HTML
- POSTDocument reasoning (async)
- POSTSearch across documents
- GETPDF template document metadata
Async-result
Communication
Clearinghouse
Ledger
- POSTCreate new ledger order
- POSTPost patient adjustment
- POSTPost institution adjustment
- POSTPost claim adjustment
- POSTPost claim payment
- POSTPost patient payment
- POSTPost institution payment
- POSTPost order write-off
- POSTPost invoice assignment
- POSTReverse a ledger entry
- GETGet outstanding institutional orders
Integration - Snowflake
Dashboard
Ledger
Post invoice assignment
Assigns an invoice to an institution for a given order.
POST
/
api
/
v2
/
ledger
/
invoice-assignment
Copy
import SampleHealthcare from 'samplehc';
const client = new SampleHealthcare({
apiKey: process.env['SAMPLEHC_API_KEY'], // This is the default and can be omitted
});
const response = await client.v2.ledger.assignInvoice({
amountUsdCents: 0,
ik: 'ik',
institutionId: 'institutionId',
invoiceId: 'invoiceId',
orderId: 'orderId',
reason: 'reason',
});
console.log(response.ledgerEntryId);
Copy
{
"ledgerEntryId": "<string>"
}
Body
application/json
Response
200
application/json
The invoice assignment was posted successfully.
Copy
import SampleHealthcare from 'samplehc';
const client = new SampleHealthcare({
apiKey: process.env['SAMPLEHC_API_KEY'], // This is the default and can be omitted
});
const response = await client.v2.ledger.assignInvoice({
amountUsdCents: 0,
ik: 'ik',
institutionId: 'institutionId',
invoiceId: 'invoiceId',
orderId: 'orderId',
reason: 'reason',
});
console.log(response.ledgerEntryId);
Copy
{
"ledgerEntryId": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.