get
https://api.freight.fyi/api/v1/detention_demurrage_invoice/generate
Generate a PayCargo invoice payload for a container.
Always uses the DatabaseStrategy. If demurrage_end_dt is provided, charges will be filtered to include only those up to that date, and the total will reflect the amount through that date. If not provided, defaults to today.
The demurrage_end_dt must be within 14 days of today.
Returns: Invoice data plus chargesAvailableThroughDate - the last date through which charges can be selected (max charge date minus 1 for next-day calculation buffer).
