#Ji_net
1 messages · Page 1 of 1 (latest)
Hey there
Taking a look
Yeah so I agree we should mark this as conditional, but the way credit notes work is that you can state the whole amount is out of band but then when you dictate the lines you need to dictate either the quantity or amount so it indicates how much of the credit note is applied to the line items themselves.
My understanding is the lines are not optional (though I agree the API ref dictates it as an optional array of hashes). Let me double check on that
Alright yeah so this stuff should be marked as conditional, but really you have two paths:
- you use
invoiceandlines - you use
invoice,amount, andcredit_amount
hmmm, ok so I'll be using the first option since I need to pass the out_of_band_amount
another question please, in case the invoice item was created as a proration, I can't add the items with a negative amount in as line's amount when creating a credit note, should I pass only lines with positive amount?