createCreditMemoItem

Creates a 'Credit memo item'

Input fields

input (CreateCreditMemoItemInput)

Return fields

id (ID!)

ID of the object

createdOn (DateTime)

Date and time of creation.

updatedOn (DateTime)

Date and time of last update.

ref (String!)

External reference to the CreditMemoItem. Must be unique.

type (String)

Type of the CreditMemoItem, typically used by the Orchestration Engine to determine the workflow that should be applied.

description (String)

Description of the CreditMemoItem.

creditMemo (CreditMemo)

CreditMemo associated with the CreditMemoItem.

creditReasonCode (SettingValueType)

Credit reason code of the CreditMemoItem.

orderItem (OrderItemLink)

Reference to an OrderItem associated with the CreditMemoItem.

returnOrderItem (ReturnOrderItemLink)

Reference to a ReturnOrderItem associated with the CreditMemoItem.

product (ProductLink)

Reference to a Product associated with the CreditMemoItem.

unitQuantity (QuantityType)

unitQuantity holds separately the amount and the unit associated.

unitTaxType (TaxType)

The tax type of this item. Should only be provided if different to the default credit memo tax type.

unitAmount (AmountType)

The unit sale price at time of sale or exchange

unitCostAmount (AmountType)

The unit cost price at time of sale or exchange.

amount (AmountType)

The item amount for this item excluding tax. This is a calculated value based on business rules that does not necessarily have to take into account the unit quantity or amounts.

taxAmount (AmountType)

The tax amount for this item. If not present at the item level, tax amount should be generated based on the tax type set at the invoice parent level.