Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 1.41 KB

CreditNoteCreateInputCreditNote.md

File metadata and controls

28 lines (22 loc) · 1.41 KB

LagoAPI::CreditNoteCreateInputCreditNote

Properties

Name Type Description Notes
invoice_id String The invoice unique identifier, created by Lago.
reason String The reason of the credit note creation. Possible values are `duplicated_charge`, `product_unsatisfactory`, `order_change`, `order_cancellation`, `fraudulent_charge` or `other`. [optional]
description String The description of the credit note. [optional]
credit_amount_cents Integer The total amount to be credited on the customer balance. [optional]
refund_amount_cents Integer The total amount to be refunded to the customer. [optional]
items Array<CreditNoteEstimateInputCreditNoteItemsInner> The list of credit note’s items.

Example

require 'lago_ruby'

instance = LagoAPI::CreditNoteCreateInputCreditNote.new(
  invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
  reason: duplicated_charge,
  description: description,
  credit_amount_cents: 10,
  refund_amount_cents: 5,
  items: [{&quot;fee_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a90&quot;,&quot;amount_cents&quot;:10},{&quot;fee_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;amount_cents&quot;:5}]
)