POST
/
api
/
v2
/
ledger
/
invoice-assignment
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);
{
  "ledgerEntryId": "<string>"
}

Body

application/json

Response

200
application/json

The invoice assignment was posted successfully.