订单状态转变-OrderTransaction 对象
一次状态转变代表订单的金额发生变化。
所需的访问
read_orders
访问范围。
在本页面
字段
- accountNumber(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
与付款方式关联的被屏蔽的帐号。 - amountSet(
[MoneyBag!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag)
)
以商店和演示货币表示的交易金额和货币。 - 授权码(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
与交易关联的授权码。 - AuthorizationExpiresAt(
[DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
授权到期的时间。该字段仅适用于Shopify Plus计划中的商店,并且仅填充Shopify Payments授权。 - createdAt(
[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
创建交易的日期和时间。 - errorCode(
[OrderTransactionErrorCode](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransactionerrorcode)
)
独立于付款提供商的标准化错误代码。 - 费用(
[[TransactionFee!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/transactionfee)
)
订单交易收取的交易费用。 - formattedGateway(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
人类可读的支付网关名称,用于处理交易。 - 网关(
[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
支付网关用于处理交易。 - 编号(
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
)
全局唯一标识符。 - 种类(
[OrderTransactionKind!](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransactionkind)
)
那种交易。 - manualCapturable(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
)
是否可以手动捕获交易。 - maximumRefundableV2(
[MoneyV2](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneyv2)
)
指定要在网关上退款的可用货币金额。仅在“建议退款”范围内可用。 - 订购(
[Order](https://shopify.dev/docs/admin-api/graphql/reference/orders/order)
)
关联的订单。 - parentTransaction(
[OrderTransaction](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction)
)
关联的父事务,例如捕获的授权。 - paymentIcon(
[Image](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/image)
)
指定要为此交易显示的付款图标。
争论 | 描述 |
---|---|
crop () [CropRegion](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/cropregion) |
根据指定区域裁剪图像。不建议使用此参数:改为使用crop on Image.transformedSrc 。 |
maxHeight () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
图片高度,以像素为单位,介于1到2048之间。不建议使用此参数:改为使用maxHeight on Image.transformedSrc 。 |
maxWidth () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
图像宽度(以像素为单位,介于1到2048之间)。不建议使用此参数:改为使用maxWidth on Image.transformedSrc 。 |
scale () [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
高分辨率视网膜显示器的图像尺寸倍增器。必须在1到3之间。不建议使用此参数:改为使用scale on Image.transformedSrc 。默认值: 1 |
- 已处理(
[DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
处理交易的日期和时间。 - 结算货币(
[CurrencyCode](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/currencycode)
)
结算货币。 - settingCurrencyRate(
[Decimal](https://shopify.dev/docs/admin-api/graphql/reference/scalar#decimal-2021-01)
)
将交易金额转换为结算货币时使用的汇率。 - shopifyPaymentsSet(
[ShopifyPaymentsTransactionSet](https://shopify.dev/docs/admin-api/graphql/reference/orders/shopifypaymentstransactionset)
)
包含与订单交易有关的所有Shopify Payments信息。该字段仅适用于Shopify Plus计划中的商店。 - 状态(
[OrderTransactionStatus!](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransactionstatus)
)
此交易的状态。 - 测试(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01)
)
该交易是否为测试交易。 - totalUnsettledSet(
[MoneyBag](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/moneybag)
)
用商店和演示货币指定要在网关上捕获的可用货币金额。仅在可捕获金额或手动将其标记为已付款时可用。
返回OrderTransaction的类型
[Order.transactions](https://shopify.dev/docs/admin-api/graphql/reference/orders/order#transactions-2021-01)
[OrderTransaction.parentTransaction](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction#parenttransaction-2021-01)
[Refund.transactions](https://shopify.dev/docs/admin-api/graphql/reference/orders/refund#transactions-2021-01)
[SuggestedOrderTransaction.parentTransaction](https://shopify.dev/docs/admin-api/graphql/reference/orders/suggestedordertransaction#parenttransaction-2021-01)
派生关系
[Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)
弃用的栏位
显示隐藏
自动生成的类型,用于通过多个OrderTransactions分页。
在本页面
字段
- edges(
[[OrderTransactionEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction)
)
边列表。 - pageInfo(
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
)
有助于分页的信息。
一种自动生成的类型,在分页期间包含一个OrderTransaction和一个光标。
在本页面
字段
- cursor(
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
用于分页的光标。 - node(
[OrderTransaction!](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction)
)
OrderTransactionEdge末尾的项目。
返回OrderTransactionEdge的类型
[OrderTransactionConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/orders/ordertransaction#edges-2021-01)