Estimate Vendor Credit Usage
Estimate the usage of vendor credits on an invoice of a given amount
Request
- Base URL: https://api.mercoa.com
- URL: https://api.mercoa.com/entity/{entityId}/counterparty/{counterpartyId}/vendor-credits/estimate-usage
- Auth: HTTP bearer
Path parameters
Entity ID or Entity ForeignID
Counterparty Entity ID or Counterparty Entity ForeignID
Query parameters
The amount of the invoice to calculate vendor credit usage for.
The currency of the invoice to calculate vendor credit usage for. Defaults to USD.
List of invoice IDs to exclude from the calculation. If not provided or an empty list, no invoices will be excluded. This is useful for recalculating vendor credit usage on invoices that already have vendor credits applied.
List of vendor credit IDs to include in the calculation. If not provided, all applicable vendor credits will be included, while an empty list will not include ANY vendor credits. This is useful for recalculating vendor credit usage on invoices that have a fixed list of applied vendor credits (e.g. a SCHEDULED or PENDING invoice).
Response
The vendor credit usage estimate
Changes
No recorded changes to this operation across all 1 revision of this API.