ExchangeInput

Specifies the input fields for an exchange.

Show definition
# Specifies the input fields for an exchange.
input ExchangeInput {
  # An input that specifies line items on a refund.
  refundLineItems: [RefundLineItemInput!]!

  # An input that represents a line item.
  checkoutLineItems: [ExchangeCheckoutLineItemInput!]!

  # Transactions to process as a refund.
  refundTransactions: [OrderTransactionInput!]

  # ID of the location where the refund was performed.
  locationId: ID

  # Whether the refunded line items were added back to the store inventory.
  restock: Boolean!

  # Customer to be associated with the new order.
  customerId: ID

  # The discount code that is applied to the checkout.
  discountCode: String

  # The manual discount applied to the checkout.
  manualDiscount: ExchangeDiscountInput
}

Input Fields

checkoutLineItems   ([ExchangeCheckoutLineItemInput!]!) Required

An input that represents a line item.

customerId   (ID)

Customer to be associated with the new order.

discountCode   (String)

The discount code that is applied to the checkout.

locationId   (ID)

ID of the location where the refund was performed.

manualDiscount   (ExchangeDiscountInput)

The manual discount applied to the checkout.

refundLineItems   ([RefundLineItemInput!]!) Required

An input that specifies line items on a refund.

refundTransactions   ([OrderTransactionInput!])

Transactions to process as a refund.

restock   (Boolean!) Required

Whether the refunded line items were added back to the store inventory.