退款-Refund 对象

表示订单中商品或交易的退款。

所需的访问

read_orders 访问范围。


在本页面


Connections

  • returnLineItems([RefundLineItemConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/refundlineitem))
    退款附带的RefundLineItem资源。
争论 描述
after
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
返回指定游标之后的元素。
before
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
返回指定游标之前的元素。
first
() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
返回n列表中的第一个元素。
last
() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
返回n列表中的最后一个元素。
reverse
() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
颠倒基础列表的顺序。
默认值:false
  • transactions([OrderTransactionConnection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction))
    与退款相关的交易。
争论 描述
after
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
返回指定游标之后的元素。
before
() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
返回指定游标之前的元素。
first
() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
返回n列表中的第一个元素。
last
() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
返回n列表中的最后一个元素。
reverse
() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
颠倒基础列表的顺序。
默认值:false


领域

  • createdAt([DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    退款创建时间。
  • duties([[RefundDuty!]](https://shopify.dev/docs/admin-api/graphql/reference/orders/refundduty))
    订单退税清单。
  • id([ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01))
    全局唯一标识符。
  • legacyResourceId([UnsignedInt64!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#unsignedint64-2021-01))
    REST Admin API中相应资源的ID。
  • note([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    与退款相关的注释。
  • order([Order!](https://shopify.dev/docs/admin-api/graphql/reference/orders/order))
    与退款相关的订单。
  • totalRefundedSet([MoneyBag!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag))
    在所有交易中,以商店和演示货币退款的总金额。
  • UpdatedAt([DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    退款的最后更新时间。


返回退款的类型

  • [Order.refunds](https://shopify.dev/docs/admin-api/graphql/reference/orders/order#refunds-2021-01)
  • [QueryRoot.refund](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#refund-2021-01)


退款突变


派生关系

  • [LegacyInteroperability](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/legacyinteroperability)
  • [Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)