需要 unauthenticated_read_checkouts_info 权限点。
接口访问需要令牌,具体如何获取令牌请参考:身份认证
查询结账
Arguments
id ● ID!non-null
结账ID
Returns
appliedGiftCards ● [AppliedGiftCard]
应用于结账的礼品卡
availableShippingRates ● AvailableShippingRates
可选的运费方案
buyerIdentity ● CheckoutBuyerIdentity
与结帐关联的客户的身份。
completedAt ● [Date]
结帐完成的日期和时间。
createdAt ● Date
结帐创建的日期和时间。
currencyCode ● CurrencyCode
结账的币种码
customAttributes ● [Attribute]
添加到结账的额外信息列表。
discountApplications ● [DiscountApplication]
已在结账时应用的折扣。
email ● String
结账的邮箱
id ● String!non-null
全局唯一ID
lineItems ● [CheckoutLineItem]
商品行列表,每个对象都包含有关结帐中的商品的信息。
lineItemsSubtotalPrice ● Money
结帐时所有商品的所有价格总和。不包括关税、税款、运费和折扣。
note ● String
与结帐关联的注释。
paymentDue ● Money
剩余要支付的金额。这等于商品行、关税、税金和运费减去折扣和礼品卡的成本。
requiresShipping ● Boolean
是否需要运输。
shippingAddress ● ShippingAddress
将运送到的收货地址。
shippingDiscountAllocations ● [DiscountAllocation]
应用的运费折扣
shippingLine ● ShippingRate
一旦客户选择了运费,它就会转换为 shipping_line 对象。
subtotalPrice ● Money
关税、运费和税款前结账时的价格。
taxesIncluded ● Boolean
订单项目和运输线路价格中是否包含税费。
totalPrice ● Money
结账时所有商品的所有价格总和,包括关税、税款和折扣。
totalTax ● Money
结帐时应用于商品行和运输的所有税费总和。
updatedAt ● Date
上次更新结帐的日期和时间。
webUrl ● URL!non-null
访问结账页的链接
错误码
关于更多通用错误码说明,请参考:状态码和错误码
这篇文章对你有帮助吗?