customerId required | string (CustomerId) <= 50 characters The customer resource ID. Defaults to UUID v4.
|
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code.
|
id | |
invoiceId | string or null <= 50 characters ID of the invoice which the credit memo is issued upon.
|
number | integer An auto-incrementing number based on the sequence of credit memos for any particular customer.
|
| |
Array unitPrice required | number <double> Credit memo item's price.
| quantity required | integer Credit memo item's quantity.
| id | | invoiceItemId | string or null <= 50 characters An invoice item's ID that the credit item is referenced to.
| description | string Credit memo item's description.
| price | number <double> Credit memo item's total price.
| productId | string or null <= 50 characters The related product's ID.
| planId | string or null <= 50 characters |
|
status | string Status of the credit memo.
Enum: | Description |
---|
issued | The credit memo is available with a full amount to be applied.
| applied | All the amount of the credit memo has been applied, no more credit can be created from it.
| partially-applied | Some amount of the credit memo has been applied, credit of amount unusedAmount can be created from it.
| voided | Some credit has or hasn't been created from the credit memo, but the credit memo cannot be used anymore.
|
|
reason | string Enum: "return" "product-unsatisfactory" "order-change" "order-cancellation" "chargeback" "write-off" "waiver" "customer-credit" "other" |
description | string A public description (visible to customers) clarifying the purpose of the credit memo.
|
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit.
|
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit.
|
totalAmount | number <double> Default: 0 The sum of all credits in the credit memo (items, shipping, tax).
|
unusedAmount | number <double> Default: 0 The amount of totalAmount which hasn't been allocated anywhere yet.
|
revision | integer Increments when the credit memo is modified.
|
createdTime | string <date-time> Credit memo created time.
|
updatedTime | string <date-time> (UpdatedTime) Read-only timestamp updates when the resource is updated.
|
| Array of Self (object) or CustomerLink (object) or InvoiceLink (object) The links related to resource.
|
Array Any of: |