Book One: Obligations · Section Two: Effects of the Obligation · Chapter Two: Means of Performance · Part One: Voluntary Performance · Third: Subject Matter, Time, Place, Expenses, and Proof of Performance
If the debtor is obliged to pay any expenses in addition to the debt, and the amount paid is insufficient to cover both the debt and those expenses, the amount paid shall be applied first to the expenses and then to the principal debt, unless otherwise agreed.
Interpretation and application must be checked against the official text and current version.