CreditMemoItemInterface attributes and implementations
CreditMemoItemInterface
provides details about items in a customer's order history that were refunded. It has the following implementations:
BundleCreditMemoItem
CreditMemoItem
DownloadableCreditMemoItem
GiftCardCreditMemoItem
Reference
The CreditMemoItemInterface
reference provides detailed information about the types and fields defined in this interface.
Example usage
The following query returns items that were refunded in order ID 000000005
. The BundleOrderItem
and DownloadableOrderItem
fragments can contain item-specific information, but the only refunded item is a configurable product.
Request:
Copied to your clipboard{customer {firstnamelastnameorders(filter: {number: {match: "000000005"}}) {items {idcredit_memos {iditems {idproduct_skuproduct_nameorder_item {product_type}quantity_refunded... on BundleCreditMemoItem {bundle_options {idvalues {idproduct_nameproduct_skuquantityprice {valuecurrency}}}}... on DownloadableCreditMemoItem {downloadable_links {uidtitle}}}}}}}}
Response:
Copied to your clipboard{"data": {"customer": {"firstname": "Roni","lastname": "Costello","email": "roni_cost@example.com","orders": {"items": [{"id": "NQ==","credit_memos": [{"id": "Mg==","items": [{"id": "Mg==","product_sku": "WS12-XS-Orange","product_name": "Radiant Tee","order_item": {"product_type": "configurable"},"quantity_refunded": 1}]}]}]}}}}