Preview a credit note
Authorizations
API Key authentication. Use "Bearer YOUR_API_KEY".
Body
The ID of the invoice the credit note is for.
^[a-zA-Z0-9_]+$A list of up to 10 line items to issue credit for.
1 - 10 elementsThe integer amount in cents representing the amount to credit the customer’s balance, which will be automatically applied to their next invoice.
The credit note’s memo appears on the credit note PDF.
The metadata for the credit note.
The data for the new invoice.
The credit note amount that was paid out of band.
The reason for issuing the credit note.
duplicate, fraudulent, order_change, product_unsatisfactory, other Response
Returns a credit note preview object if successful.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
credit_note The amount of the credit note.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
gbp, usd, eur, sek "gbp"
The description of the credit note.
The amount of the discount for the credit note.
The credit note’s memo appears on the credit note PDF.
The credit note number.
The reason for issuing the credit note.
duplicate, fraudulent, order_change, product_unsatisfactory, other The status of the credit note.
issued, voided The type of the credit note.
pre_payment, post_payment The date and time the credit note was voided.
The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
The integer amount in cents representing the amount to credit the customer’s balance, which will be automatically applied to their next invoice.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
The credit note amount that was paid out of band.
The credit note’s subtotal.
The credit note’s subtotal excluding tax.
The tax amounts for the credit note.
The credit note’s tax amount.
The credit note’s total amount.
The credit note’s total amount excluding tax.
The pretax credit amounts for the credit note.